Home » MYSQL » Mysql Error handling » Question
  1. Which of these returns a string containing an error message?
    1. mysql_errno()
    2. mysql_close()
    3. mysql_error()
    4. mysql_sqlstate()
    5. None of these
Correct Option: C

The API call named ‘mysql_error()’ returns a string containing an error message. ‘mysql_close()’ does not return any value at all. ‘mysql_errno()’ returns a MySQL-specific numeric code.



Your comments will be displayed only after manual approval.