[Openfirst-cvscommit] base/includes dbase.php,1.13,1.14
Brought to you by:
xtimg
From: Jamie <ast...@us...> - 2005-11-20 21:45:21
|
Update of /cvsroot/openfirst/base/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18043/includes Modified Files: dbase.php Log Message: Fixed DB create thing? Index: dbase.php =================================================================== RCS file: /cvsroot/openfirst/base/includes/dbase.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** dbase.php 19 Oct 2005 04:09:26 -0000 1.13 --- dbase.php 20 Nov 2005 21:45:10 -0000 1.14 *************** *** 1,651 **** ! <?php ! /* ! * openFIRST.base - includes/dbase.php ! * ! * Copyright (C) 2003, ! * openFIRST Project ! * Original Author: Tim Ginn <tim...@po...> ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by [...1277 lines suppressed...] ! $sql .= implode(",\n", $cols + $keys); ! $sql .= ')'; ! $this->query($sql); ! } ! ! if ($this->errorNumber() != 0) return false; // Error ! ! foreach($table->getRows() as $row) { ! $vals = array(); ! foreach($row->getValues() as $val) { ! $vals[$val] = $row->getValue($val); ! } ! // TODO: Make this multi-server compatible ! $this->query( 'REPLACE INTO '.$this->quoteTable($table->getName()). ! ' SET '.$this->quoteFDPairs($vals)); ! } ! return true; ! } ! } ! ?> |