Skip to content

Instantly share code, notes, and snippets.

View Jmayhak's full-sized avatar

Jonathan Mayhak Jmayhak

View GitHub Profile
@Jmayhak
Jmayhak / gist:982898
Created May 20, 2011 13:38
Get the selected rows from the mysqli_stmt as an array full of standard objects using mysqli
<?php
/**
* Returns all the selected rows as an array full of objects
* @param MySQLi_STMT $stmt
* @return array
*/
public function getResult($stmt)
{
if (is_a($stmt, 'MySQLi_STMT')) {
$result = array();