//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 - books
Warning: Undefined array key "pop" in /var/www/vhosts/donutpress.co.uk/httpdocs/books.php on line 6
Published to mark the centenary of the poet W.S. Graham (1918-1986), authors from a range of countries and generations, writing from across the spectrum of poetics, are gather in the pages of this anthology, offering 100 poems to celebrate his 100 years. The anarchic spirit of Graham roams the party in the guise of previously unpublished poems and photographs, presented together with quotations from his writings, all showing why he is so revered. The poet John Kinsella has said 'Some critics are gingerly saying Graham is one of the greats of twentieth century poetry ... I say he is one of the greats of any era.'
Fatal error: Uncaught mysqli_sql_exception: Unknown column 'termheader' in 'field list' in /var/www/vhosts/donutpress.co.uk/httpdocs/includes/fix_mysql.inc.php:36
Stack trace:
#0 /var/www/vhosts/donutpress.co.uk/httpdocs/includes/fix_mysql.inc.php(36): mysqli_query(Object(mysqli), 'SELECT termhead...')
#1 /var/www/vhosts/donutpress.co.uk/httpdocs/includes/get.inc.php(14): mysql_query('SELECT termhead...')
#2 /var/www/vhosts/donutpress.co.uk/httpdocs/includes/tb.inc.php(85): get_return('termheader', 'extras', '')
#3 /var/www/vhosts/donutpress.co.uk/httpdocs/index.php(18): do_footer('books')
#4 {main}
thrown in /var/www/vhosts/donutpress.co.uk/httpdocs/includes/fix_mysql.inc.php on line 36