//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
Colette Bryce
Colette Bryce was born in Derry in 1970 and lives in Newcastle upon Tyne. As well as the pocketbook The Observations of Aleksandr Svetlov (Donut Press, 2007) Colette has published four collections of poetry with Picador, The Heel of Bernadette (2000), The Full Indian Rope Trick (2004) Self-Portrait in the Dark (2008) and The Whole & Rain-domed Universe (2014), and Selected Poems was published in 2017. She has received several awards for her work, including first prize in the National Poetry Competition.