2006-01-07, 05:36 PM
Greetings,
I am very not good with PHP, and I have a question about what the following code in bold is for:
Thanks!
I am very not good with PHP, and I have a question about what the following code in bold is for:
showthread.php Wrote:$query = $db->query("SELECT pid FROM ".TABLE_PREFIX."posts WHERE tid='".$nextthread[tid]."' ORDER BY dateline DESC LIMIT 0, 1");Is see this "header("Location.... thing quite a bit, and would like to know what purpose it serves.
$pid = $db->result($query, 0);
header("Location:showthread.php?tid=$nextthread[tid]&pid=$pid#pid$pid");
}
Thanks!