HOME > PHP > PHP Forum > Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\Project\search.php on line 62
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\Project\search.php on line 62
<?
include("connect.php");
$Sql="select * from userinfo Where id_emp=$_REQUEST[id]";
echo $_REQUEST[id];
echo $Sql;
$Result=mysql_query($Sql);
$Row=mysql_fetch_array($Result)
?>
ผลลัพธ์ที่ได้คือ
K1002select * from userinfo Where id_emp=K1002
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\Project\search.php on line 64