diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2001-03-03 22:59:11 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2001-03-03 22:59:11 +0000 |
commit | 167594dc09919f6437ddcf6958bf42b4036012ec (patch) | |
tree | 6531446ca072fa2a6a7265fd7a483d008010a14c | |
parent | ecc651d83d57685eb5d7b5d6c1084815474a0606 (diff) | |
download | brdo-167594dc09919f6437ddcf6958bf42b4036012ec.tar.gz brdo-167594dc09919f6437ddcf6958bf42b4036012ec.tar.bz2 |
Added "db_insert_id()", a wrapper for mysql_insert_id();
-rw-r--r-- | CHANGELOG | 3 | ||||
-rw-r--r-- | includes/database.inc | 6 |
2 files changed, 9 insertions, 0 deletions
@@ -32,6 +32,9 @@ drupal 2.00, 15/03/2001 * added CREDITS file * added directory "misc" * added new scripts to directory "scripts" + * improved database abstraction layer + + added db_insert_id() + - revised documentation drupal 1.00, 15/01/2001 diff --git a/includes/database.inc b/includes/database.inc index 9e0d22254..3be870775 100644 --- a/includes/database.inc +++ b/includes/database.inc @@ -38,6 +38,12 @@ function db_result($qid, $field = 0) { if ($qid) return mysql_result($qid, $field); } + +function db_insert_id() { + return mysql_insert_id(); +} + + // Setup database connection: db_connect($db_host, $db_user, $db_pass, $db_name); |