i have a query,
$theresult = mysql_query("SELECT * FROM table WHERE column_b = ".$variable);
so this will produce a list of results, 3 columns.
what i want to do is check if any of the rows of the result have “27” in column C.
i dont need the results, just a true/false..
thank you!
Hi i think you want to check that column c of any row has value 27 or not in fetching result PHP..then
1.If you can add condition column_c = 27 then use mysql_num_rows for count number of rows in result
2.If you not want to change in mysql query then