I need to port over the latest threadid/postid on index page from 3.0.x to 3.5.x. The code below worked fine in 3.0.x, can someone help me port it to 3.5.x? I can via paypal, please pm me.
Code:
$newestthreadidq = $DB_site->query("
SELECT threadid
FROM thread
ORDER BY threadid DESC
LIMIT 1
");
$newestthreadid = $DB_site->fetch_array($newestthreadidq);
$newestpostidq = $DB_site->query("
SELECT postid
FROM post
ORDER BY postid DESC
LIMIT 1
");
$newestpostid = $DB_site->fetch_array($newestpostidq);
$formattedthreadid = number_format($newestthreadid[threadid]);
$formattedpostid = number_format($newestpostid[postid]);