+ MYSQL

Reading up on MySQL, notes to self.

mysqli_fetch_row

  • Results are in a standard array
  • Keys are integers

mysqli_fetch_assoc

  • Results are in an associative array

mysqli_insert_id

  • Returns the id of the last inserted record on the provided connection.
$id = mysqli_insert_id($db_conn);