Multiple choice technology web technology

Which of these are valid php functions to use with a mysql server?

  1. $result = mysql_obtain_rows($query);
  2. $result = mysql_executeNonQuery($query);
  3. $result = mysql_query($query);
  4. $record = mysql_fetch_array($result)
Reveal answer Fill a bubble to check yourself
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.