Jump to content

mysql_num_rows()


mona

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))....

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...