//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
Liane Strauss
Liane Strauss was born in Queens, New York, and lives in London. She teaches creative writing and literature at Birkbeck College, University of London, and at City Lit. Donut Press published Liane's first pocketbook Frankie Alfredo, in 2009. Her first full collection, Leaving Eden, was published by Salt Publishing in 2010 and was followed by All the Ways You Still Remind Me of the Moon (Paekakariki Press) in 2015.