Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: mysql_query(): 6 is not a valid MySQL-Link


JazzMan_Jay

Recommended Posts

Hi Guys,

I am loosing my mind... please help.

I have a working version of my shop on my local drive and everything is working fine.

After I uploaded it on my provider's server and edited some files to match the DB requests, I thought that everything was OK, but no chance.

I have searched and searched, but no idea where it could come from.

Connect to DB are fine, connect to Tables are fine, the outputed sql string is working in phpmyadmin...

 

Please help me solving this prob, please.

I am turning crazy....

 

 

 

Warning: mysql_query(): 6 is not a valid MySQL-Link resource in .../includes/functions/database.php on line 44

select code, title, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, value from currencies

[TEP STOP]


Warning: mysql_query(): 6 is not a valid MySQL-Link resource in .../includes/functions/database.php on line 44

select count(*) as total from sessions where sesskey = '60bcd3fe4b86604ec033a9ebf3ce9fc8'

[TEP STOP]

 

Jazzman Jay.

Link to comment
Share on other sites

perhaps this was generated when mysql was trying to o/p an error or something? In your catalog\includes\functions\database.php change the

mysql_errno()

instances to

mysql_errno($link)

and see if you get an error. Just in case the link identifier is causing this.

Link to comment
Share on other sites

Thanks fo your reply... but no god results:

 

That's what I get now:

Warning: mysql_query(): 6 is not a valid MySQL-Link resource in .../includes/functions/database.php on line 44

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in .../includes/functions/database.php on line 44
-

select code, title, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, value from currencies

[TEP STOP]


Warning: mysql_query(): 6 is not a valid MySQL-Link resource in .../includes/functions/database.php on line 44

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in .../includes/functions/database.php on line 44
-

-->select count(*) as total from sessions where sesskey = '3c9996275017e4d67ac0371a7c587281'

[TEP STOP]

 

I really do not know wher this come from, please any idea are welcome

Thanks

Link to comment
Share on other sites

Thanks for your help enigma1.

 

I "turned off" the problem.

 

I developed a contrib (after those threads.. it is yet only a pre-pre alpha!) wich is redirecting customers based on their IP using an IP2COUNTRY db.

 

It seems that i have made a mistake there.

 

If you would like to join and help to develop, you are welcome...

Wanna give a try ?

 

Thanks

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...