View Single Post
  #2 (permalink)  
Old Jan 21st, 2008, 18:31
alexgeek's Avatar
alexgeek alexgeek is offline
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: PHP-MySQL sitw not woking on webhost, but works on XAMPP

I think the actual function is mysql_num_rows() but from the error you are receiving I'd guess that the query is not be executed.
Where you have: mysql_query(query string); change it to:
PHP: Select all

mysql_query(querystringhere) or die(mysql_error()); 

This will show any errors with the query.
Have you put in the right database connection string for your server? The connection for your localhost and the connection for your server will be different no doubt.
Reply With Quote