i have the form:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" method="post" action="update.php">
<p>ID
<input name="id" type="text" id="id">
</p>
<p> New Value
<input name="newvalue" type="text" id="newvalue">
</p>
<p>
<input type="submit" name="Update" value="Update">
</p>
</form>
</body>
</html>
and the php file:
<?
include 'db.php'
//define
$id = $POST['id'];
$value = $POST['newvalue'];
$query = "SELECT * FROM test WHERE id='$id'";
$result=mysql_query($query);
$updating = "UPDATE test WHERE id = $id SET value = $value";
?>
forget my db.php, that works perfectly 😃
i get parse error on line 5 of php which is defining the 'id'
. Thanx for any help.