In message <[EMAIL PROTECTED]>, Gordon Stewart
<[EMAIL PROTECTED]> writes
>
>
>>>> [EMAIL PROTECTED] 3/05/2005 2:23:17 a.m. >>>
>In message <[EMAIL PROTECTED]>, Gordon Stewart
><[EMAIL PROTECTED]> writes
>
>>#$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?
><
>
>Basically theres only ONE row to loop from.
Not sure what you mean here, but in your script you were looping twice
through the returned records.
>
>- This part of the script, I am viewing an individual record...
>
>& I wont know the grouping it belongs to - until after it 'scans' the record...
But you only need to read the record once (if you only expect one
record.
$row = mysql_fetch_array( $result );
(no WHILE)
>I coud assign the values (during the loop) - to temparary variables...
>
>Although that adds 20 or so extra lines of code.. - I'll fix it up tonight....
Could you could move the loop, so that it is 'bigger', and covers both
the top and bottom of the page?
I can't grasp what you are trying to do. Can you post an idea of what
you want to see on the page?
>
>G
>
>
>
>
>
>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
>
>
>
>
>
>
>
>
>
--
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/