Re: [PHP] Why doesn't this work? HTTP_USER_AGENT

2001-11-27 Thread chip
This is interesting. I did my testing in Opera 5.05 and it fails to display the page correctly. I then opened Netscape 6.2 and it works fine. Must be a problem with Opera. I also set Opera to identify itself as Netscape and it still failed to load the page. Thanks for the assistance. Chip On

Re: [PHP] Why doesn't this work? HTTP_USER_AGENT

2001-11-27 Thread Andrey Hristov
doesn't this work? HTTP_USER_AGENT This is interesting. I did my testing in Opera 5.05 and it fails to display the page correctly. I then opened Netscape 6.2 and it works fine. Must be a problem with Opera. I also set Opera to identify itself as Netscape and it still failed to load the page. Thanks

[PHP] Why doesn't this work? HTTP_USER_AGENT

2001-11-26 Thread chip
I have this small test page, below, which returns an error - Parse error: parse error in /usr/local/apache/htdocs/test.php on line 4 on the $browser line, if I comment it out, it returns an error on the $ip line, etc. I can leave all the php lines out, add an echo statement ? echo

Re: [PHP] Why doesn't this work? HTTP_USER_AGENT

2001-11-26 Thread Craig Vincent
snip What have I done wrong in such a simple bit of code? - htmlheadtitle/title/head body ? $browser = $HTTP_USER_AGENT; $ip = $REMOTE_ADDR ; $db = mysql_connect ( localhost , username , password ); mysql_select_db ( database , $db ); $sql = INSERT INTO

Re: [PHP] Why doesn't this work? HTTP_USER_AGENT

2001-11-26 Thread David Robley
On Tue, 27 Nov 2001 17:43, Craig Vincent wrote: snip What have I done wrong in such a simple bit of code? - htmlheadtitle/title/head body ? $browser = $HTTP_USER_AGENT; $ip = $REMOTE_ADDR ; $db = mysql_connect ( localhost , username , password ); mysql_select_db