AndyHearne2005 Posted September 4, 2005 Share Posted September 4, 2005 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home2/andy2005/public_html/shopping/admin/includes/functions/database.php on line 45 - select configuration_key as cfgKey, configuration_value as cfgValue from configuration [TEP STOP] Just wondered what this means and how to fix Thanks Link to comment Share on other sites More sharing options...
realpascal Posted September 4, 2005 Share Posted September 4, 2005 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home2/andy2005/public_html/shopping/admin/includes/functions/database.php on line 45- select configuration_key as cfgKey, configuration_value as cfgValue from configuration [TEP STOP] Just wondered what this means and how to fix Thanks <{POST_SNAPBACK}> Can you post lines 40-50 from your database.php ? Link to comment Share on other sites More sharing options...
AndyHearne2005 Posted September 4, 2005 Author Share Posted September 4, 2005 Can you post lines 40-50 from your database.php ? <{POST_SNAPBACK}> Sure if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) { if (!is_object($logger)) $logger = new logger; $logger->write($query, 'QUERY'); } $result = mysql_query($query, $$link) or tep_db_error($query, mysql_errno(), mysql_error()); if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) { if (mysql_error()) $logger->write(mysql_error(), 'ERROR'); } Link to comment Share on other sites More sharing options...
realpascal Posted September 4, 2005 Share Posted September 4, 2005 Chances are that you have not established a proper connection to the server, selected a database, or have specified an invalid link to the resource. However, I don't see the error.. Anyone else ?? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.