Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 80 → Rev 81

/trunk/api/sql/SQL_manipulation.fonct.php
19,7 → 19,7
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: SQL_manipulation.fonct.php,v 1.1 2004-06-15 10:13:26 jpm Exp $
// CVS : $Id: SQL_manipulation.fonct.php,v 1.2 2004-10-21 15:17:19 alex Exp $
/**
* Bibliothèque de fonctions liées au SQL
*
31,7 → 31,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.1 $ $Date: 2004-06-15 10:13:26 $
*@version $Revision: 1.2 $ $Date: 2004-10-21 15:17:19 $
// +------------------------------------------------------------------------------------------------------+
*/
 
48,7 → 48,7
* @return mixed la nouvelle valeur de clé pouvant être utilisé ou false en cas d'erreur sql.
*/
 
function SQL_obtenirNouveauId($db, $table, $colonne_identifiant)
function SQL_obtenirNouveauId(&$db, $table, $colonne_identifiant)
{
$requete = 'SELECT MAX('.$colonne_identifiant.') AS maxi FROM '.$table;
$resultat = $db->query($requete);
64,6 → 64,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2004/06/15 10:13:26 jpm
* Intégration dans Papyrus.
*
* Revision 1.1 2004/04/28 11:38:54 jpm
* Ajout d'un fichier de fonctions de manipulation sql.
*