Mysql_num_rows(): Supplied Argument Is Not A Valid

windows

Guest
Hi,<br /><br />I am tryint to set up my TCH account to access another server remotely. I am having problems with the PHP on the other server however. The MySql functions seem to work ok on it (mysql_query, mysql_fetch_array), but when I try to run a mysql_num_rows, I receive the following error:<br /><br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->mysql_num_rows(): supplied argument is not a valid MySQL result resource<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />I am certain my code is correct: I have tested it on my TCH account. Anybody know what is wrong with the other server so I can have them correct it? They are running php 4.3.0.<br /><br />Thanks in advance.<br /><br />Roy<!--content-->
Hey, <br /><br />I just figured out the problem. And I feel like an idiot for it.<br /><br />I was taking such care to make sure the files ported over, namely the db access information was correctly changed, that I forgot to create the table on the other database that I have on my first.<br /><br /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/huh.gif" style="vertical-align:middle" emoid=":huh:" border="0" alt="huh.gif" /> <br /><br />But all is good now.<br /><br />Thanks anyway!<br /><br />Roy<!--content-->
 
Back
Top