[SOLVED] Problem with code
Posted: Mon Dec 29, 2003 5:32 am
Can anyone tell me if there is anything wrong with this statement
$query = "SELECT * FROM song ORDER BY songname ASC WHERE status='$stat'";
$result = @mysql_query ($query);
while ($row = mysql_fetch_array($result)) {
echo "{$row['songname']}";
}//end of while
i get error for $row = mysql_fetch_array($result))
Help!!!!
$query = "SELECT * FROM song ORDER BY songname ASC WHERE status='$stat'";
$result = @mysql_query ($query);
while ($row = mysql_fetch_array($result)) {
echo "{$row['songname']}";
}//end of while
i get error for $row = mysql_fetch_array($result))
Help!!!!