problem with mysql_fetch_array

wxdqz

New Member
Hello

We are running PHP Version 4.0B2 on Linux server and facing the problem that variable not defined. But if we run the same code on
winNT and PHP Version 4.0.0 then we don't face the problem given below

Warning: 0 is not a MySQL result index in data.php on line 10

// The lines of code are

line 8 :
$st="Select * from tbluserinfo where username='$username'" ;

line 9 :
$rc = mysql_query($st);

line 10 :
while($a_row=mysql_fetch_array($rc))

Warning: 0 is not a MySQL result index in data.php on line 10

Proper records are there in database

If anybody can help that why this problem is coming, and is there any solution for that. Is it something related to the configuration of MYSQL or some other reason is there? If you know then please help us.

Thanks
Livetek
 
Back
Top