 |
|
Code (PHP)
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO manufacturing (ProductId, `Date`, ProductTotal, Detailedstorage) VALUES (%s, %s, %s, %s)",
GetSQLValueString($_POST['NBuy'], "int"),
GetSQLValueString($_POST['Mdata'], "date"),
GetSQLValueString($_POST['Munittatal'], "int"),
GetSQLValueString($_POST['MDetailedstorage'], "text"));
mysql_select_db($database_MyConnect, $MyConnect);
$Result1 = mysql_query($insertSQL, $MyConnect) or die(mysql_error());
$dwSQL = "Update manufacturing SET ProductTotal=ProductTotal-".$_POST['Munittatal']."Where Id= 3";
mysql_query ($dwSQL);
Tag : PHP, MySQL, HTML
|
|
 |
 |
 |
 |
Date :
2017-05-19 15:24:02 |
By :
bassnaruto |
View :
795 |
Reply :
6 |
|
 |
 |
 |
 |
|
|
|
 |