I'm new to MySQL and PHP and am having trouble with this code. Please do tell me where I am going wrong:Here's the code:\[code\]<?phpinclude('connection.php');$num1 = '1';$num2 = '2';// Get all the data from the table$sql = mysql_query("SELECT * FROM table1 WHERE num1 = '$num1' AND num2 = '$num2'");$row = mysql_fetch_assoc($sql) or die("No rows returned by query");while ($row = mysql_fetch_assoc($sql)) {echo $row["num1"];echo '</br>';echo $row["num2"];echo '</br>';}?>\[/code\]If I change\[code\]$sql = mysql_query("SELECT * FROM table1 WHERE num1 = '$num1' AND num2 = '$num2'");\[/code\]to\[code\]$sql = mysql_query("SELECT * FROM table1 WHERE num1 > '$num1' AND num2 > '$num2'");\[/code\]it works. It doesn't work with the equal sign although there are records that should be printed out.Thank you for your time.