adaptation des fichiers pour postgresql deuxieme etape

This commit is contained in:
opensides
2004-09-02 20:28:56 +00:00
parent 0f90a9348e
commit 8b211fcb07
7 changed files with 86 additions and 3089 deletions

View File

@@ -27,7 +27,7 @@ class Form
{
var $db;
var $errorstr;
function Form($DB)
{
@@ -296,17 +296,17 @@ class Form
/*
* Retourne le nom d'un pays
*
*
*/
function pays_name($id)
{
$sql = "SELECT rowid, libelle FROM ".MAIN_DB_PREFIX."c_pays";
$sql .= " WHERE rowid=$id";
$sql .= " WHERE rowid=$id;";
if ($this->db->query($sql))
{
$num = $this->db->num_rows();
if ($num)
{
$obj = $this->db->fetch_object(0);
@@ -318,6 +318,7 @@ class Form
}
}
}