欲一個MySQL行轉換成與屬性=>值的對象笨轉換MySQL的行到對象
例如
$query = "SELECT * FROM blah...";
if($query->num_rows() > 0)
{
foreach($query->result_array() as $row)
{
$notification = new stdClass();
//this is where I don't know what to do
for every coloumn
$notification->coloumn_name = value at that coloumn;
//end of cluelessness
return $notification;
}
}