Jump to content

Mysql error message, HELP ME PLEASE.


TottoBennington

Recommended Posts

This is the error message :

 

Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\wamp\www\LikeButton\articles.php on line 6

 

Can anyone help me ?

 


<?php
function get_articles() {
             $articles = array ();

		 $query = mysql_query("SELECT ´article_id´ , ´article_title´ , ´article_likes´ FROM ´articles´ ") ;
		 while (($row = mysql_fetch_assoc($query)) !=false){[size=12pt][u][b] Error is in this line[/b][/u][/size]
		  
		  echo $row ['article_title'] , '<br />';
		  }
}          
?>

Link to comment
https://forums.phpfreaks.com/topic/255452-mysql-error-message-help-me-please/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.