freshbrains Posted June 20, 2015 Share Posted June 20, 2015 Hello Theres something wrong with my code as I keep getting this error. It points to the bottom line of code. Can you tell me whats wrong with it please? Thank you $connection= mysqli_connect("$db_server","$db_username","$db_password", "$db_database") or die ("could not connect to mysql"); $sqlCommand = mysqli_query($connection,"SELECT * FROM client WHERE username='$myusername' and password='$mypassword'"); $count = mysqli_num_rows($connection,$sqlCommand); Quote Link to comment Share on other sites More sharing options...
fastsol Posted June 20, 2015 Share Posted June 20, 2015 Well it's a pretty straight forward error. You're giving it 2 arguments and it only wants one, the result from the query itself. So remove the $connection. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.