我试图做一个mysql查询,但由于某种原因,这是我得到的错误:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home1/server/public/chat/includes/functions/chat.func.php on line 9
第 9 行如下:
l6 $query = "SELECT `Sender`, `Message` FROM `database_chat`.`chat` ORDER BY `Msg_ID` DESC";
l7 $run = mysql_query($query);
l8 $messages = array();
l9 while($message = mysql_fetch_assoc($run)) {...
数据库的名称是“database_chat”,“chat”是表...
由于某种原因它没有连接,我错过了什么?
我已经仔细检查了表格元素是否正确写入......