Im trying to do a mysql query but for some reason this is the error I'm getting:
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
Line 9 is as follows:
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's name is 'database_chat' and 'chat' is the table...
For some reason it ain't connecting, what am I missing?
I've double-checked that the table elements are correctly written....