//collect information... $browser =$_SERVER['HTTP_USER_AGENT']; // get the browser name $curr_server = $_SERVER['SERVER_NAME']; $curr_page = $_SERVER['REQUEST_URI'];// get page name $ip = $_SERVER['REMOTE_ADDR']; // get the IP address $from_page = $_SERVER['HTTP_REFERER'];// page from which visitor came //Insert the data in the table... $query_insert ="INSERT INTO statTracker (browser,ip,thedate_visited,page,from_page) VALUES ('$browser','$ip',now(),'$curr_page','$from_page')" ; $result=@mysql_query ( $query_insert); if(!$result){ echo mysql_error(); } //echo $curr_page; //remove this section when attaching the script to a webpage //I include it only because of it's debug value. ?>
Tim Turnbull Tim Turnbull was born in north Yorkshire in 1960 and lives in Scotland. In January 2006 he won The Contenders, a £10,000 Performance Poetry Fellowship, awarded by the Arts Foundation. His first full collection, Stranded in Sub-Atomica (Donut Press, 2005), was shortlisted for the Forward Prize for Best First Collection and his poem 'Ode on a Grayson Perry Urn' was shortlisted for the Forward Prize for Best Single Poem. Tim has also published es lebt (roughbooks, 2009), a selection of his poems in English and German translation, Caligula on Ice and Other Poems (Donut Press, 2009) and a limited edition, The Camden Art Redemprion Miracle (Donut Press, 2011). Silence and Other Stories was published by Postbook Press in 2016. Tim Turnbull's books Stranded in Sub-Atomica | ||||