1.

What does mysql_query() return on failure?(a) 0(b) 1(c) -1(d) a non-zeroI got this question in an internship interview.This key question is from User-Defined Variables in division System, Status and User Variables of MySQL

Answer»

Correct option is (d) a non-zero

To ELABORATE: Both of the functions named ‘mysql_query()’ and ‘mysql_real_query()’ return zero for statements that SUCCEED. They return non zero for failure. A STATEMENT is successfully executed if the SERVER accepts it.



Discussion

No Comment Found

Related InterviewSolutions