//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
A special, signed and numbered edition of Tim's poem 'The Camden Art Redemption Miracle'. Dust jackets are screenprinted by Liam Relph and the book is hand stitched. The edition is limited to fifty-five copies. The poem is a rollick in twenty-nine stanzas of perfectly pitched terza rima.
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