$con = mysql_connect("gamerz-anonymous.com","Test123","Test123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("gamerz_anonymous_com_cars");
$Make=$_POST['Make'];
$Model=$_POST['Model'];
$Year=$_POST['Year'];
$Price=$_POST['Price'];
$Features=$_POST['Features'];
$Comments=$_POST['Comments'];
mysql_query("INSERT INTO `UsedCars` ( id , Make , Model , Year , Price , Features , Comments)
VALUES ('', '$Make', '$Model', '$Year', '$Price', '$Features', '$Comments')");
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
echo "1 record added";
mysql_close($con)
?>
2007-09-04
20:07:47
·
2 answers
·
asked by
jetstrike3000
2
in
Programming & Design