31.10.2014, 08:02
Quote:
num_rows will always return 1 when using a COUNT instruction in the query..
--- Use fetch_row function instead. The first row[and the unique row from the SELECT instruction, returned from the fetch_row function] will contain the numbers 0 or 1 from the query you made. Then, free the result, and return the value. |