Hi guys i have written this code and for some reason it isnt inserting into a database and i jus cant see for the life of me why not :S
any help would be appreciated.
Btw the input form field is named claimid and the first field is named claimid.
function regcustomer(){
if(isset($_POST['reg'])){
$claimid = $_POST['claimid'];
$sql = "INSERT INTO details ('claimid') VALUES ('$claimid')";
$query = mysql_query ($sql);
if (!$query){echo "<p>Could Not Insert!</p>";}else{echo "<p>Inserted!</p>";}
echo $sql;
}
}
This is the response i get from that code
Could Not Insert!
INSERT INTO details ('claimid') VALUES ('vxbcvb')
Regards Pinky.