Jump to content

whats wrong with this code


desjardins2010

Recommended Posts

i get an error Warning: mysql_query() expects parameter 1 to be string, resource given in /home/jeffdesj/public_html/clicker/index.php on line 71

$select = mysql_select_db("jeffdesj_clicker");
		
		$result = mysql_query($connect,"SELECT * FROM `sites`"); 
			while ($row = mysql_fetch_array($result)) {
			$header = $row['header'];
			$image = $row['image'];
			$date = $row['date'];
			}
Link to comment
https://forums.phpfreaks.com/topic/284609-whats-wrong-with-this-code/
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.