Thread: MYSQL - insert
View Single Post
Old 09-15-2003, 11:25 AM   #5 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,175
Belisarius is on a distinguished road
I think you still have the quoting problem. Here's how I would do it (again, I'm not familiar with PHP).

$query = "INSERT INTO userlog (browser, long_name, version, javascript, platform, os, ip, language) VALUES ('" + $browser + "','" + $longname + "','" + $version + "','" + $javascript + "','" + $platform + "','" + $os + "','" + $ip + "','" + $language + "')";

You need to escape out of the quote for each variable.
__________________
GitS
Belisarius is offline   Reply With Quote