Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites
View Statistics - Next Notice - Previous NoticeDirectory filter : [ all ] / postnuke_official / html / modules / multisites [ view in CVS ]
| Date | Directory [filter] | File(s) [view] | Author [filter] |
| 10 Aug 2002 13:46:56 | postnuke_official/html/modules/multisites | pnadmin.php,1.8,1.9 | Gary Mitchell |
| insert GenID before SQL INSERT statement | |||
Update of /home/cvsroot/postnuke_official/html/modules/multisites
In directory ns7.hostnuke.net:/tmp/cvs-serv32168
Modified Files:
pnadmin.php
Log Message:
insert GenID before SQL INSERT statement
Index: pnadmin.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/multisites/pnadmin.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** pnadmin.php 2 Jul 2002 15:18:54 -0000 1.8
--- pnadmin.php 10 Aug 2002 13:46:54 -0000 1.9
***************
*** 735,744 ****
if (!isset($curvar)) {
$query = "INSERT INTO $modulevarstable
! ( pn_modname,
pn_name,
pn_value )
VALUES
! ('" . pnVarPrepForStore($modname) . "',
'" . pnVarPrepForStore($name) . "',
'" . pnVarPrepForStore($value) . "');";
--- 735,747 ----
if (!isset($curvar)) {
+ $nextid = $dbconn->GenId($modulevarstable);
$query = "INSERT INTO $modulevarstable
! ( pn_id,
! pn_modname,
pn_name,
pn_value )
VALUES
! ('" . $nextid . "',
! '" . pnVarPrepForStore($modname) . "',
'" . pnVarPrepForStore($name) . "',
'" . pnVarPrepForStore($value) . "');";
View Statistics - Next Notice - Previous Notice
| Visit Developer Site - Browse CVS Repository |
Syndicate via backend.rss (max. once per hour please) | Powered by CVSNotice 0.1.3 |