Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

URGENT - GETTING THIS ERROR ON SQL


211655

Recommended Posts

Posted

I am getting this error on my WHOS_ONLINE.php file.

 

 

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in D:\vsites\html\admin\includes\functions\database.php on line 45

0 -

 

select session_id, time_entry, time_last_click from whos_online where session_id='86db2700b53c7c8d0e1da1217d177f92'

 

I have also tried to repair the table. it said it repaired but still no luck. any idea

 

please its urgent. this is line 45 on my database.php

 

$result = mysql_query($query, $$link) or tep_db_error($query, mysql_errno(), mysql_error());

Posted

Hi,

 

well try to do some semantic work on it:

 

0- database.php on line 45 is not the place to search 'cause it is the place the function is getting the error.

1- Did it ever worked ?

2- Did you modify something in your DB or .php files ?

3- What happen if you make those changes back?

4- Repair table, empty table try who's online again.

5- Try querry in phpmyadmin, look at the results there.

6- never give up.

 

Hope you will find a way.

  • 2 weeks later...

Archived

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

×
×
  • Create New...