In message <[EMAIL PROTECTED]>, Gordon Stewart
<[EMAIL PROTECTED]> writes
>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..

You are not restarting the loop.  
Reset() - Set the internal pointer of an array to its first element 
You are picking up each row as an Array, 
>#$op=$row['Operator'];
then you use the operator who happens to be in the final row in a link:
> <A HREF='?company=".$op."'>".$op."</A> listing.<BR>\n
then you 're-do' the final record
>while($row = mysql_fetch_array( $result )) {

Is there any need to collect all the "Operator"s, then only use the last
one?

mysql_data_seek might do it using your coding, but I think that your
logic is incorrect.  I think that you have a requirement for 2 separate
queries here.

-- 
Pete Clark

http://www.hotcosta.com
http://www.spanishholidaybookings.com




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/
 



Reply via email to