Forum Moderators: coopster
[edited by: jatar_k at 6:34 pm (utc) on Aug. 19, 2006]
[edit reason]
[1][edit reason] fiexed sidescroll [/edit] [/edit][/1]
$sql="INSERT INTO customerinfo(first_name,last_name,address_1,address_2,city,cust_state,zipcode,country,phone,mobile,fax,email,accountname,howhearus,bkt_id,company_name) VALUES(\'$FirstName\', \'$LastName\', \'$AddressLine1\', \'$AddressLine2\', \'$City\', \'$County\', \'$Postcode\', \'$Country\', $PhoneNumber, $MobileNumber, $FaxNumber, \'$EmailAddress\', \'$AccountUsername\', \'$hear_about\', \'$bktid\', \'$company\')";
[edited by: jatar_k at 6:35 pm (utc) on Aug. 19, 2006]
[edit reason]
[1][edit reason] fixed sidescroll [/edit] [/edit][/1]
You generally either need '' or NULL to represent "missing" data in an INSERT statement.
[edited by: FalseDawn at 2:56 pm (utc) on Aug. 19, 2006]