[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/class.socommon.php, 1.1.1.2
From: |
nomail |
Subject: |
[Phpgroupware-cvs] property/class.socommon.php, 1.1.1.2 |
Date: |
Fri, 11 Jun 2004 18:29:14 +0200 |
Update of /property
Modified Files:
Branch:
class.socommon.php
date: 2004/06/11 16:29:14; author: sigurdne; state: Exp; lines: +7 -1
Log Message:
no message
=====================================================================
Index: property/class.socommon.php
diff -u property/class.socommon.php:1.1.1.1 property/class.socommon.php:1.1.1.2
--- property/class.socommon.php:1.1.1.1 Wed Jun 2 20:06:55 2004
+++ property/class.socommon.php Fri Jun 11 16:29:14 2004
@@ -243,7 +243,13 @@
return $entity;
}
+ function increment_id($name)
+ {
+ $dbresult = $GLOBALS['phpgw']->db->Execute("SELECT
value FROM fm_idgenerator WHERE name='$name'");
+ $next_id=$dbresult->fields['value'] +1;
-
+ $GLOBALS['phpgw']->db->Execute("UPDATE fm_idgenerator
set value = $next_id WHERE name = 'workorder'");
+ return $next_id;
+ }
}
?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/class.socommon.php, 1.1.1.2,
nomail <=