Okay, I want to get the date of when a certain thread was created.
I'm doing this:
PHP Code:
// Get latest thread details
require("../dbinfo.php");
$conn = mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db("MYSITE_forum");
$result = mysql_query("SELECT * FROM vbulletin_thread WHERE forumid=4 ORDER BY threadid DESC LIMIT 1");
$threadinfo = mysql_fetch_assoc($result);
//Check date thread
$dateline = $threadinfo['dateline'];
$threadinfo_date = date('m-d-Y', $dateline);
Well I did that and echo'd $threadinfo_date and I got:
I really doubt the thread was made then.
So what the hell, how do I get the actual date? Thanks :up: