View Single Post
Old 05-22-2006, 04:30 PM   #2 (permalink)
etono
Moderator
 
Join Date: May 2006
Posts: 86
Default Re: Problem submitting data to a database.

Format your SQL statement like this:

Code:
$sql = "INSERT INTO userlogging ( ID, date, time, IP, browser, referer ) VALUES ( '', '$date', '$time', '$ip', '$useragent', '$referer' )";

You mentioned about variable names being in brackets. In this case I will assume that your variables are coming from an array called "clean":
Code:
$sql = "INSERT INTO userlogging ( ID, date, time, IP, browser, referer ) VALUES ( '', '{$clean['date']}', '{$clean['time']}', '{$clean['ip']}', '{$clean['useragent']}', '{$clean['referer']}' )";
__________________
Jeremy Moseley
My Links: Design Related Blog | Personal Website | Portfolio
etono is offline   Reply With Quote
Sponsored Links