//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.
?>
Donut Press - authors
Paul Farley
Paul Farley was born in Liverpool and lives in north Lancashire. He received the Somerset Maugham Award and a Forward Prize for his first collection of poems, and was Sunday Times Young Writer of the Year in 1999. His second collection, The Ice Age, won the Whitbread Poetry Award, while his third, Tramp in Flames, was shortlisted for the Forward, Griffin and T.S. Eliot prizes. In 2009 he received the E.M. Forster Award from the American Academy of Arts & Letters. His most recent collection, The Dark Film (Picador, 2012), was followed by the publication of his Selected Poems in 2013.