//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
A.B. Jackson
Andrew Buchanan Jackson was born in Glasgow in 1965, raised in Cheshire and Fife, and studied English Literature at the University of Edinburgh. His first book, Fire Stations, was published by Anvil Press in 2003, and won the Forward Prize for Best First Collection that year. In 2011, Donut Press published a signed and numbered edition of Apocrypha, a twenty-one poem series, which was chosen as the Poetry Book Society Pamphlet Choice. Andrew's second full collection, The Wilderness Party, was published by Bloodaxe Books in September 2015.