//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
From the bars of Prague and London's docklands to the mountains of Afghanistan and the makeshift picture-house of a ramshackle Laurel & Hardy museum, the poems which make up What was that? cast a sharp eye on contemporary life and culture while glancing back at a fast-receding century. Whether exploring art or love, contemplating the fallout of recent world events or eulogising the Austin 1800, Tim Turnbull shows great insight and dexterity coupled with an irresistable, earthy, comic touch.
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