//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
W.N. Herbert
W.N. Herbert was born in Dundee in 1961, educated there and at Brasenose College, Oxford. He is a poet and translator, Professor of Poetry and Creative Writing at Newcastle University, and was recently appointed Dundee's inaugural Makar. His most recent full collection of poetry is Omnesia, which was published in two versions -- an Alternative Text and a Remix -- by Bloodaxe Books in February 2013.