I am Using a form to insert data into a table i have created, I receive no errors but for some reason, it states it worked, although it does not insert any data, Here is what I'm using:
this is the form page:
<head>
<link rel="stylesheet" href="../uploads/css/style.css" type="text/css" />
</head>
<body>
<form method="post" action="_update_db.php">
Name:<br />
<input type="text" name="Name" size="11" /><br />
Title:<br />
<input type="text" name="Title" size="30" /><br />
Description:<br />
<input type="text" name="Description" size="50" /><br />
<input type="submit" value="Update Database" />
</form>
</body>
Here is the PHP script:
<head>
<link rel="stylesheet" href="../uploads/css/style.css" type="text/css" />
</head>
<body>
<?php
$Name = $_POST['Name'];
$Title = $_POST['Title'];
$Description = $_POST['Description'];
mysql_connect ("xxxx", "xxxx", "xxxxx") or die ('I cannot connect to the datebase because: ' . mysql_error());
mysql_select_db ("xxxxxx");
$query="INSERT INTO game_pages (ID, Name, Title, Discription)VALUES ('NULL','".$Name."', '".$Title."', '".$Description."')";
echo "Database Updated With: <br />Name: " .$Name. " <br />Title: ".$Title." <br />Description: ".$Description ;
?>
</body>
Any Ideas, thanks in advance.