Home » MYSQL » Mysql Compound Statements » Question
  1. For failure, mysql_query() returns _______________.
    1. -1
    2. a non-zero
    3. 1
    4. 0
    5. None of these
Correct Option: B

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.