1.

What are the different ways of handling the result set of MySQL in PHP?

Answer»

There are 4 WAYS of HANDLING the RESULT set of MySQL in PHP. They are:

  • mysqli_fetch_array(): Returns the current ROW of the result set as an associative ARRAY, a numeric array, or both.
  • mysqli_fetch_assoc(): Returns the current row of the result set as an associative array.
  • mysqli_fetch_object(): Returns the current row of a result set, as an object.
  • mysqli_fetch_row(): Returns result row as an enumerated array.


Discussion

No Comment Found