Jeremy Morano wrote:
>  
> ...
> 
> $data=mysql_fetch_row($result);
> $count=$data[0];
> 
> echo   $count;
> 
> Yet the only result I get is the first value of the first
> column.............
> 

Of course, and $data[1] is the first value of second column, etc.
If you want to get all result, use while-loop like this:

<?
while ($data=mysql_fetch_row($result)) {
 ...
 // do here something with $data array 
 ...
}
?>

-- 
Pavel a.k.a. Papi

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to