Changeset 7791 for temp/trunk
- Timestamp:
- 2006/11/08 15:59:14 (20 years ago)
- Location:
- temp/trunk
- Files:
-
- 2 edited
-
data/class/SC_Query.php (modified) (1 diff)
-
html/shopping/confirm.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/class/SC_Query.php
r7789 r7791 410 410 } 411 411 412 // auto_increment¤ò¼èÆÀ¤¹¤ë 412 413 function get_auto_increment($table_name){ 414 // ¥í¥Ã¥¯¤¹¤ë 415 $this->BEGIN(); 416 417 // ¼¡¤ÎIncrement¤ò¼èÆÀ 413 418 $arrRet = $this->conn->query("SHOW TABLE STATUS LIKE $table_name"); 414 415 419 $auto_inc_no = $arrRet["Auto_increment"]; 416 420 421 // Ãͤò¥«¥¦¥ó¥È¥¢¥Ã¥×¤·¤Æ¤ª¤¯ 417 422 $this->conn->query("ALTER TABLE $table_name AUTO_INCREMENT=?" , $auto_inc_no + 1); 423 424 // ²ò½ü¤¹¤ë 425 $this->COMMIT(); 418 426 419 427 return $auto_inc_no; -
temp/trunk/html/shopping/confirm.php
r7789 r7791 92 92 $order_id = $objQuery->nextval("dtb_order","order_id"); 93 93 }elseif (DB_TYPE == "mysql") { 94 $order_id = $objQuery-> auto_increment("dtb_order","order_id");94 $order_id = $objQuery->get_auto_increment("dtb_order"); 95 95 } 96 96 $arrData["order_id"] = $order_id;
Note: See TracChangeset
for help on using the changeset viewer.
