Jump to content
Sign in to follow this  
crossma

Mysql_num_rows(): Supplied Argument Is Not A Valid

Recommended Posts

Hi,

 

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:

 

mysql_num_rows(): supplied argument is not a valid MySQL result resource

 

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.

 

Thanks in advance.

 

Roy

Share this post


Link to post
Share on other sites

Hey,

 

I just figured out the problem. And I feel like an idiot for it.

 

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.

 

:ph34r:

 

But all is good now.

 

Thanks anyway!

 

Roy

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...