Miscellany
public php v1 · immutable$referrer = getenv('HTTP_REFERER'); //update statistics $id = $_GET['id']; $squery = mysql_query("INSERT INTO tutorial_stats SET tutid = '$id',hits = '1',timestamp = NOW(), referrer = '$referrer'"); if(!$squery) { die( 'ERROR:STATS' ); }