insert not working
| From: | Ross | Date: | Thu, 05 May 2005 09:15:52 +0000 |
| Subject: | insert not working | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-214500@lists.php.net to get a copy of this message | ||
$query = "INSERT INTO sheet1 (title, fname, sname, job_title, organisation,
street, postcode, city, telephone, mobile, fax, email, web, add_info) VALUES
('$title', '$fname', '$sname', '$job_title',
'$organisation', '$street',
'$postcode', '$city', '$telephone', '$mobile',
'$fax', '$email', '$web',
'$add_info')";
$result= mysql_query($query);
if($result){
echo "sucess";
}
why yould this not work? I can retrievethe data but not write any data to
the database??
R.