Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SQL Errror


AndyHearne2005

Recommended Posts

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

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

Can you post lines 40-50 from your database.php ?

Link to comment
Share on other sites

Can you post lines 40-50 from your database.php ?

 

 

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

Archived

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

×
×
  • Create New...