I'm a php beginner. Trying to submit bit of data to a MYSQL database.
When I submit the form, a row is created in the table but only containing the AUTOINT column, not my data. Any help?
index.php:
<form method="post" action="form.php">
<input id="name" name="name" value="Stuffff">
<input id="limite" name="limite" value="100.00">
<input type="submit" name="submit" value="Add!">
</form>
form.php:
<?
mysql_connect("localhost","root","root")
mysql_select_db("means");
$order = "INSERT INTO categories (name, limite ) VALUES ( '$name', '$limite' )";
$result = mysql_query($order);
if($result){
echo("<br>Input data is succeed");
} else{
echo("<br>Input data is fail");
}
?>