Which of these are valid php functions to use with a mysql server?
-
$result = mysql_obtain_rows($query);
-
$result = mysql_executeNonQuery($query);
-
$result = mysql_query($query);
-
$record = mysql_fetch_array($result)
C,D
Correct answer
Explanation
mysql_query() executes a SQL query on the MySQL server and returns a result resource. mysql_fetch_array() fetches a row from the result set as an array. Options A and B are fictional functions that don't exist in PHP's MySQL extension.