Soldato
Hi
I am using this code to send my form into a MYSQL database
however it will not go into the database, here is a link to the picture of the database
any ideas?
Thanks
I am using this code to send my form into a MYSQL database
Code:
<?php
} else {
$email = $_POST['email'];
$username = $_POST['username'];
$password = $_POST['password'];
$titles = $_POST['titles'];
$forename = $_POST['forename'];
$othernames = $_POST['othernames'];
$addressline1 = $_POST['addressline1'];
$addressline2 = $_POST['addressline2'];
$addressline3 = $_POST['addressline3'];
$city = $_POST['city'];
$county = $_POST['county'];
$postcode = $_POST['postcode'];
$homenumber = $_POST['homenumber'];
$mobile = $_POST['mobile'];
$credit = $_POST['credit'];
$creditnumber = $_POST['creditnumber'];
$sortcode = $_POST['sortcode'];
mysql_query("INSERT INTO 'form' (email, username, password, titles, forename, othernames, addressline1, addressline2, addressline3, city, county, postcode, homenumber, mobile, credit, creditnumber, sortcode) VALUES ('$email', '$username', '$password', '$titles', '$forename', '$othernames', '$addressline1', '$addressline2', '$addressline3', '$city', '$county', '$postcode', '$homenumber', '$mobile', '$credit', '$creditnumber', '$sortcode')");
echo "Thank You! You have sucessfully submitted for hosting from Infra-One Solutions";
}
?>
however it will not go into the database, here is a link to the picture of the database
any ideas?
Thanks