code
==============
$result = mysql_query( $query) or die( "Unable to add to
database:<br>\n$query<hr>\n" .mysql_error());
# Prob code here :-
#while($row = mysql_fetch_array( $result )) {
#$op=$row['Operator'];
#}
#reset($result);
if (7==9){
echo "<CENTER>\n
<A HREF='?'>Home</A> Return to the
<A HREF='?company=".$op."'>".$op."</A> listing.<BR>\n
";
}
echo "
<TABLE WIDTH='75%'>\n";
while($row = mysql_fetch_array( $result )) {
// Print out the contents of each row into a table
=========================
Hi again...
PS - Im assuming MYSQL commands are valid here - Or is there a
seperate MYSQL group ?
Anyways... - My prob:-
PS - My other problem is FIXED :) YAY!!!!
Anyways... - My prob:-
in one of my screens (http - not cron-job)... - Im looping through the
$results - and displaying the values for ONE row / record. (not
multiple rows)...
Basically - I want to loop through the row/results - & find the
'Operator' value & put it in the heading..
- & then re-start the loop - To produce the results below..
HOWEVER - If i do this, My heading displays the correct name of the
operator - However it just stops - It doesnt continue down the screen
& display the result details.
Usually, I just use 'reset' - & im able to re-start a foreach loop.. -
However I tried that (PS I know the above is commented out - I know to
remove them, to activate those lines :) )
Anyways, I tried to use 'reset' on the $result variable - However
nothing happens...
Is there a special way of getting a specific variable from the results
, & then going back & re-looping ?
Or is it a different process - to just the normal arrays - that im used to ?
No worries - As always, Im off to bed - Have to wait till tomorow....
Ps Do I talk too much ?
--
G Stewart
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/