Re: Storing browser stats
| From: | Joel Colombo | Date: | Thu, 06 Mar 2003 10:11:04 +0000 |
| Subject: | Re: Storing browser stats | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-26114@lists.php.net to get a copy of this message | ||
at the top of the page......
i assume MYSQL DB. you must establish $link_id first connect to your DB then
run.....
remember if u use this code a function, remember $HTTP.... is not global by
default.
$browser = $HTTP_SERVER_VARS["HTTP_USER_AGENT"];
$sql = "INSERT INTO table (useragent_name) VALUES (\"$browser\")";
mysql_query($sql, $link_id);
Simple as that....
Joel Colombo
"Bruce Levick" <brucel@ispye.com> wrote in message
news:FE6D82BC94316E418A3F97EF3E66AD4D20445C@ispyesrv1.ispye.com...
Is there a method for storing each users browser stats within a database
table.
So everytime someone visits the browser info is gathered and stored as a
unique row in the 'browser' table in the database.
Any advice??
Cheers