If I have a MySQL statement like this:
$sql="SELECT `name`, DATE(`time`), FROM `students` WHERE `id`='5'";
I am using CodeIgniter and trying to fetch the result in object format rather than array format (i.e. not using row_array())
$query=$db1->query($sql);
$row=$query->row();
I can get the name as
echo $row->name;
I cannot get the value of date with this method.
Any Ideas how I can get the date with this method, with something like:
echo $row->date;
?