There is a lastpost row in the threads table now i wanna fetch the last one but I can't!
This returns all values but how to only return the last one which is the one I am interested in?
This one only returns the first
Please help.
I this the correct way????
$q = $db->simple_select("threads", "*", "uid = 30");
while($row = $db->fetch_array($q))
{
$time_check = $row['lastpost'];
echo $time_check;
}
This returns all values but how to only return the last one which is the one I am interested in?
This one only returns the first
$q = $db->simple_select("threads", "*", "uid = 30");
$row = $db->fetch_array($q)
$time_check = $row['lastpost'];
echo $time_check;
Please help.
I this the correct way????
$q = $db->simple_select("threads", "*", "uid = 30", array('order_by' => 'lastpost', 'order_dir' => 'DESC', 'limit' => 1));