I have just transfered this site to my server and i am receiving an error when loading the index page. The error is as below: Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/vhosts/zeeimage.com/httpdocs/database.php on line 317 Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /var/www/vhosts/zeeimage.com/httpdocs/database.php on line 320 Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/vhosts/zeeimage.com/httpdocs/database.php on line 317 Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /var/www/vhosts/zeeimage.com/httpdocs/database.php on line 320 Can't find Source Server! The Code Lines are as follows: } */ $cur= $this->_cursor; $ret = null; if ($row = mysql_fetch_assoc( $cur )) { $ret = $row; } mysql_free_result( $cur ); //$this->_cursor =''; return $ret; } Any help from my fellow DPers would be great! Thanks
It could be the query itself. Maybe the query depends on a $_GET value and the setting of global variables is different from your server. What is the query?
Yes, there was a new database name for the new server. I thought i updated that info in the config file already though. I will double check to make sure that the database name, username, and PW are all entered correctly.
usually such errors occur because you have the : 1. database url wrong 2. database name wrong or 3. database username or password wrong
Yup its most probably the forum configs.. possibly the table names... anything of that sort.. double check everything..