cant update through html table
Posted: Wed Mar 24, 2010 12:31 am
hi, my code is
and the table code is:
and the problem is that after executing the table part Amount stays 36.
thanks in advanced
Code: Select all
?php
include("/var/lib/content/www/dbcon.php");
mysql_select_db("tehnik", $con);
mysql_query("UPDATE 4asti SET partAmount = '36'
WHERE partName = 'kabel utp'");
mysql_close($con);
?>
Code: Select all
<html>
<body>
<form action="sklad_zarejdane_un.php" method="get">
partName: <input type="text" name="partName" />
partAmount: <input type="text" name="partAmount" />
<input type="submit" />
</form>
</body>
</html>
thanks in advanced