Home » MYSQL » Mysql miscellaneous » Question
  1. What does ‘mysql_query()’ return on failure?
    1. a non-zero value
    2. -1
    3. 1
    4. 0
    5. None of these
Correct Option: A

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.



Your comments will be displayed only after manual approval.