From b7418f98ba966b1aecd6c130a356de12cd7c129b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 18 Feb 2002 13:51:04 +0000 Subject: [PATCH] changed last_insert_id() to get_last_insert_id($table,$field) --- etemplate/inc/class.so_sql.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.so_sql.inc.php b/etemplate/inc/class.so_sql.inc.php index f2b0456270..00c8a95247 100644 --- a/etemplate/inc/class.so_sql.inc.php +++ b/etemplate/inc/class.so_sql.inc.php @@ -302,7 +302,7 @@ class so_sql $this->db->query($sql = "INSERT INTO $this->table_name ($cols) VALUES ($vals)",__LINE__,__FILE__); if ($this->autoinc_id) - $this->data[$this->db_key_cols[$this->autoinc_id]] = $this->db->last_insert_id(); + $this->data[$this->db_key_cols[$this->autoinc_id]] = $this->db->get_last_insert_id($this->table_name,$this->autoinc_id); } else //update existing row, preserv other cols not used here {