Maison > Article > développement back-end > 为何总是Warning: mysql_fetch_object(): supplied argument is not a valid MySQL resul
为什么总是Warning: mysql_fetch_object(): supplied argument is not a valid MySQL resul
为什么总是
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in D:\AppServ1\www\forum\index.php on line 46
代码:
$id = $row["id"];
$res=mysql_query("select count(*) as total from reply where topic id='$id'");
$r = mysql_fetch_object($res);
大家帮帮忙