mysql_fetch_array() problems

wxdqz

New Member
When i use mysql_fetch_array() as a controll in a while loop like:

$result = mysql_query("SELECT * FROM employees",$db);
while($row = mysql_fetch_array($result){

}i can access columns i the tabek by $myrow["column_name"] inside the while loop whitout any problems. But when i put the $row = mysql_fetch_array($result) by itself i just get an error, why?
 
Back
Top