 |
|
หากใช้คำสั่ง ignore ข้อมูลซ้ำกันแล้วให้ขึ้นmessagebox ว่าซ้ำกัน จะตรงเขียนคำสั่งไว้ตรงไหนค่ะ
ตัวอย่างโค๊ด ค่ะ
Code
$insertSQL = sprintf("INSERT ignore INTO tbliability (Id_lia, Id_dep, Id_indicator,Id_year) VALUES (%s, %s, %s, %s)",
GetSQLValueString($_POST['Id_lia'], "int"),
GetSQLValueString($_POST['Id_dep'], "text"),
GetSQLValueString($_POST['Id_indicator'], "text"),
GetSQLValueString($_POST['Id_year'], "text"));
Tag : PHP
|
|
 |
 |
 |
 |
Date :
2012-04-28 21:10:46 |
By :
nunok_1990 |
View :
1622 |
Reply :
1 |
|
 |
 |
 |
 |
|
|
|
 |