Thread: MYSQL - insert
View Single Post
Old 09-14-2003, 01:36 PM   #1 (permalink)
jimmyoctane
Registered User
 
jimmyoctane's Avatar
 
Join Date: Sep 2003
Location: California
Posts: 26
jimmyoctane is on a distinguished road
Send a message via AIM to jimmyoctane
MYSQL - insert

I am modifing a script I borrowed and am trying to get info
from the visitor to my site.

I have it so I can display the data to the screen but would like to write to mysql database :

================================================== ================
$browser = $client->property('browser');
$longname = $client->property('long_name');
$version = $client->property('version');
$javascript = $client->property('javascript');
$platform = $client->property('platform');
$os = $client->property('os');
$ip = $client->property('ip');
$language = $client->property('language');


//$mysqlinsert = mysql_query("INSERT INTO userlog VALUES("$browser", "$longname", "$version", "$javascript", "$platform", "$os", "$ip", "language" ");

print $browser;
print $longname;
print $version;
print $javascript;
print $platform;
print $os;
print $ip;
print $language;

?>
================================================== ================
not sure how to do the INSERT part only been at this a couple of days
jimmyoctane is offline   Reply With Quote