--- Huzz <[EMAIL PROTECTED]> wrote:
> I have a sql statement which brings about 15 records...
> inside the while loop i am trying to get data from another
> table by passing an id, the problem is i am only getting
> the first record .. not the whole 15 records..

The answer lies in your own code. You're looping through all rows the first
time but not the second.

You loop through each record here:

> while($row = $db->sql_fetchrow()){

You only obtain the first row here:

> $row1 = $db->sql_fetchrow($result1);

Hope that helps.

Chris

=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to