 |
|
Code
Parse error: parse error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\AppServ\www\icommerce\membereditproduct.php on line 16
Code
<?
ob_start();
session_start();
if($_SESSION["strEmail"] =="")
{
header('location:index.php');
exit();
}
//============ Start Session และทำการเรียก Function ติดต่อฐานข้อมูล
require_once('connect/connect.php');
require_once('connect/function.php');
//=========== กรณีมีการแก้ไขรายการสินค้า
if($_GET["Action"]=="Save")
{
//=========== บันทึกข้อมูลสินค้า
$sql_up = "update product set ProductCode='$_POST[txtProductCode]',Productpost='$_SESSION["strEmail', ProductName='$_POST[txtProductName]', Description='$_POST[txtDescription]',Price='$_POST[txtPrice]', PriceNormal='$_POST[txtPriceNormal]',PriceSend='$_POST[txtPriceSend]',Stock='$_POST[txtStock]',Promotion='$_POST[rdoPromotion]', New='$_POST[rdoNew]' where ProductID='$_GET[ProductID]'";
$dbquery_up = mysql_query($sql_up);
//echo $sql_up;
// exit();
Tag : PHP, JAVA, JSP
|
|
 |
 |
 |
 |
Date :
2012-09-23 23:21:00 |
By :
kim_cmu |
View :
925 |
Reply :
2 |
|
 |
 |
 |
 |
|
|
|
 |