Which of the following does not return a value?
mysql_close(), mysql_init, mysql_real_connect
mysql_close(), mysql_init, mysql_real_connect
A. 0
B. 1
C. 2
D. 3
Answer: Option B
Solution (By Examveda Team)
This question asks about MySQL functions that don't return any value. We need to find the function that doesn't give us a result.Let's analyze the options:
* mysql_close(): This function closes an existing database connection. It doesn't need to provide a result, so it doesn't return a value. * mysql_init: This function initializes a MySQL connection handle. Like closing a connection, it doesn't need to return a value. * mysql_real_connect: This function establishes a connection to a MySQL database server. It usually returns a value (either 1 for success or 0 for failure).
Therefore, the answer is both mysql_close() and mysql_init don't return a value.
Join The Discussion