Jump to content

sql query problem


shadiadiph

Recommended Posts

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

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.