Ok, I am trying to access my table via php. I have a successful connection to the server and a successful selection of the right database on the server. But I keep getting this error message when I try to run my query line through the mysql_fetch_array() finction:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/content/85/6905585/html/Web182/Final Project/instruments.php on line 33
This is the line that I am using to run my query.
$query = "SELECT uName, pwd FROM users WHERE uName == '$uName', pwd == '$pwd'";
Is there something wrong with my syntax? I am basically trying to compare the username and password in the database table to see if they match when the user entered in the login page. If it is correct, it will display the table of instruments ordered by the individual. Let me know if you need more info. =)