shadiadiph Posted December 20, 2008 Share Posted December 20, 2008 hi i keep getting the following error message from the following error message. why am i getting this message from the script below the table exists. Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/hmtcompa/public_html/testing/demo.php on line 6 SELECT * FROM tblcatdetails ORDER BY category ASC <? include("global/connection.php"); include("global/mail.class.php"); error_reporting(7); $query_category = "SELECT * FROM tblcatdetails ORDER BY category ASC"; $category = mysql_query($query_category, $db) or die(mysql_error() ." ".$query_category); $row_category = mysql_fetch_assoc($category); header("Cache-Control: no-cache"); ?> Link to comment https://forums.phpfreaks.com/topic/137795-sql-query-problem/ Share on other sites More sharing options...
genericnumber1 Posted December 20, 2008 Share Posted December 20, 2008 mysql_query($query_category, $db) in this, $db is an invalid connection. Track this back to find out why, and if you are unable to, post the code so we can take a look. Link to comment https://forums.phpfreaks.com/topic/137795-sql-query-problem/#findComment-720219 Share on other sites More sharing options...
shadiadiph Posted December 20, 2008 Author Share Posted December 20, 2008 thanks for the heads up my current problem is giving me a headache Link to comment https://forums.phpfreaks.com/topic/137795-sql-query-problem/#findComment-720229 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.