mona Posted March 31, 2006 Share Posted March 31, 2006 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 More sharing options...
Armed Rebel Posted April 3, 2006 Share Posted April 3, 2006 Where is your sql query message? Link to comment Share on other sites More sharing options...
vijay Posted April 3, 2006 Share Posted April 3, 2006 Hi,It will give number of rows in result.So plz checkif(mysql_num_rows($result) > 0){}Suppose this will help uRegardsVijay Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now