Forum Moderators: phranque

Message Too Old, No Replies

problem with site after moved to another server

         

zeus

12:31 pm on Jun 14, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I recently sold a website (www.domain.com) that contained no php or mysql errors. Once the site was moved to the new server, winxp XAMPP, the site no longer functions correctly. I have setup an XAMPP server on winxp to try to diagnose the problem, but have yet to figure it out.

Example of the problem: www.domain.com
The main page of the site appears to be working correctly, widget titles and links are available and so are the categories and links. After following a category or widget link the center of the page, widget container, is empty. Am I missing something? I've looked over all the scripts and haven't been able to find a clue to why this is working incorectly.

The only error I have found is
Code:
mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/httpd/vhosts/domain.com/httpdocs/profile.php on line 55

upon looking over profile.php and adding print error, I am left with the same error.

I have tried switching between PHP 4 and 5, but still have had no luck. Any ideas or help would be great.

encyclo

1:55 pm on Jun 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What exactly is on line 55 (and a few lines before)? You say that you have switched between PHP4 and 5, what was the old server running?

zeus

6:37 pm on Jun 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Everything in the quotes below is from line 55 and the line above. Your
server
is querying, so I can't explain why this isn't working. I recreated
the server
in winxp and linux and I am experiencing the same problems. Its beyond
me at
the moment.

"$result=mysql_query("select username from users where id=$UserID");
list($row[username])=mysql_fetch_row($result);"