1.

What returns a string containing an error message?(a) mysql_error()(b) mysql_errno()(c) mysql_sqlstate()(d) mysql_close()This question was posed to me in an online quiz.This intriguing question originated from Session-Only System Variables topic in portion System, Status and User Variables of MySQL

Answer»

Right choice is (a) mysql_error()

For explanation: 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.



Discussion

No Comment Found

Related InterviewSolutions