View Single Post
Old 02-27-2013, 07:09 PM   PM User | #22
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 ($replies = $replied->fetch_assoc())
{
printf("Max timestamp for parent %s is %s" . PHP_EOL, $replies['parent'], $replies['maxTimestamp']);
}
$replied->free();
}

ANd I tried this too
fondy98 is offline   Reply With Quote