Google News
logo
MySQL - Quiz(MCQ)
For failure, mysql_query() returns ________
A)
0
B)
1
C)
-1
D)
a non-zero

Correct Answer :   a non-zero


Explanation : 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.

Advertisement