View Single Post
Old 02-27-2013, 07:08 PM   PM User | #21
fondy98
New Coder

 
Join Date: Feb 2013
Posts: 15
Thanks: 9
Thanked 0 Times in 0 Posts
fondy98 is an unknown quantity at this point
$replied = $site->db->query("SELECT parent, MAX(`timestamp`) AS maxTimestamp FROM " . PREFIX . "replies WHERE type = 'ticket' GROUP BY parent");
if ($replied = $site->db->query($sQry))
{
while ($ticket = $replied->fetch_assoc())
{
printf("Max timestamp for parent %s is %s" . PHP_EOL, $ticket['parent'], $ticket['maxTimestamp']);
}
$replied->free();
}

I tried this as well
fondy98 is offline   Reply With Quote