Still am getting the same error here is my page which is posting to the php file
<html>
<head>
<title>Pet creation page</title>
</head>
<body>
<form method="post" action="post.php">
<td>Pet name:</td>
<input type="text" name="$petname" value="" size="12" />
<br>
<td>Type:</td>
<input type="text" name="$pettype" value="" size="12" />
<br>
<td>Price:</td>
<input type="text" name="$petprice" value="" size="12" />
<br>
<input type="submit" value="Update Database" />
</form>
</body>
</html>
and here is my php post page
<?php
$petname = $_POST['name'];
$pettype = $_POST['type'];
$petprice = $_POST['250'];
$host="localhost";
$user="root";
$pass="majick";
mysql_connect ("$host", "$user", "$pass") or die (
mysql_select_db(pet)
$result = mysql_query("INSERT INTO animal (name, type, price)
VALUES ('$petname', '$pettype', '$petprice');
mysql_query or die (’Error updating database’);
?>
PLEASE HELP