//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
Wayne Holloway-Smith
Wayne Holloway-Smith received his PhD in Creative and Critical Writing from Brunel University in 2015. His poetry has featured in Poetry (Chicago), Poetry London, Poetry Review and Rising and he was the winner of the 2016 Geoffrey Dearmer Award. Beloved, in case you've been wondering was Wayne's debut pocketbook. His first full collection, Alarum, was published by Bloodaxe Books in 2017 and was shortlisted for the Rohampton Poetry Prize. I Can't Wait for the Wending will be published by Test Centre in 2018.