WOW I posted that terribly, heres what I meant..
Hi I am in process of doing a PHP script, my other one works fine, I put them both in below, however i get this error.
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order (Firstname, surname, telephone, email, title, description) VALUES ('Stef' at line 1
The code I am using for this section is
<?php
$con = mysql_connect("localhost","root","rhysrhys");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("hagidolls", $con);
$sql="INSERT INTO order (Firstname, surname, telephone, email, title, description)
VALUES
('$_POST[name]','$_POST[lname]','$_POST[tele]','$_POST[mail]','$_POST[title]','$_POST[descriptions]')";
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
echo "Order Has been Submitted, Being Redirected in 5 Seconds";
mysql_close($con);
?>
The database tables I am using are idorder, Firstname, surname, telephone, email, title, description