Jump to content
Sign in to follow this  
mona

mysql_num_rows()

Recommended Posts

I'm trying to transfer my work ( a project using mysql and php) into another servermy project is working successfully on my computer where I'm using php5,on the server they are using php 4after running on the server this problem appears:mysql_num_rows(): supplied argument is not a valid MySQL resultAs I know this function works on php3, php4 and php5 so what is the problemknowing that it is working on my laptop.here is the piece of code where I'm using this function:$array=split("\\\\",$_POST["newsql"]);$newsql=implode('',$array);executing($newsql,$db);..this is the function:function executing($sql,$db){$result=mysql_query($sql,$db);if(mysql_num_rows($result))....

Share this post


Link to post
Share on other sites

Hi,It will give number of rows in result.So plz checkif(mysql_num_rows($result) > 0){}Suppose this will help uRegardsVijay

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.

Loading...
Sign in to follow this  

×
×
  • Create New...