I have a website which uses php and mysql to extract news items and other info from a database.
I want to add something which will register raw visitor data to my database so I can do my own analysis.
So I added a table called visitors with structure(starting simple):
QUOTE
Time timestamp(14)
IPaddress varchar(16)
Browser varchar(16)
IPaddress varchar(16)
Browser varchar(16)
Then I try in my access routine to add soemthing to write into this table, but soehow this hangs. maybe somebody here has an idea why:
The code looks like:
QUOTE
echo "before insert ";
$sql= "INSERT INTO visitors SET
Time = NULL,
IPaddress = 'IP1234567',
Browser = 'Netscape7.0'";
// perform the insert
if(!@msql_query($sql)) echo ('There is a problem now with that...' . mysql_error());
$sql= "INSERT INTO visitors SET
Time = NULL,
IPaddress = 'IP1234567',
Browser = 'Netscape7.0'";
// perform the insert
if(!@msql_query($sql)) echo ('There is a problem now with that...' . mysql_error());
I just see the text: "before insert" and it then hangs.
I know the database is open all right, so at least I had expected an error message out of the last statement.
Any ideas/
tia
Cor