$m_username = mysql_real_escape_string($_POST['m_username']); // ควรมีตรงนี้ด้วย เพื่อความปลอดภัย
$txt_point = mysql_real_escape_string($_POST['txt_point']); // เหมือนกับข้างบน
$sql = "update set tb_member set m_point = m_point+$txt_point where m_username='$m_username'";
Date :
2013-03-04 01:27:41
By :
cookiephp
No. 5
Guest
ขอบคุณมากค่ะ
Date :
2013-03-04 15:17:06
By :
มือใหม่
No. 6
Guest
Code (PHP)
$name=$_POST['name'];
$amount=$_POST['amount'];
$sql = "update accessory set allamount = allamount+$amount where name ='$name'";
mysql_query($sql) or die ("update error");
Date :
2013-03-21 23:01:20
By :
อ่อนหัด
No. 7
Guest
Code (PHP)
$name=$_POST['name'];
$amount=$_POST['amount'];
$sql = "update accessory set allamount = allamount+$amount where name ='$name'";
mysql_query($sql) or die ("update error");