/trunk/services/modules/0.1/isfan/Taxons.php |
---|
222,7 → 222,7 |
public function recupererIdInf() { |
//SELECT num_nom FROM bfdtx_v2_00 WHERE num_tax_sup = (SELECT num_nom FROM bdtfx_v2_00 WHERE num_nom = X); |
$req_relation = 'SELECT num_nom FROM '.$this->table |
.' WHERE num_nom = num_nom_retenu AND num_tax_sup = (SELECT num_nom FROM ' |
.' WHERE num_tax_sup = (SELECT num_nom FROM ' |
.$this->table |
.' WHERE '.implode(' AND ', $this->requete_condition).')'; |
$res_relation = $this->getBdd()->recupererTous($req_relation); |
232,7 → 232,6 |
public function recupererIdSup() { |
//SELECT num_nom FROM bfdtx_v2_00 WHERE num_nom = (SELECT num_tax_sup FROM bdtfx_v2_00 WHERE num_nom = X); |
$this->requete_condition[] = "num_nom = num_nom_retenu" ; |
$req_relation = 'SELECT num_tax_sup as num_nom FROM '.$this->table |
.' WHERE '.implode(' AND ', $this->requete_condition); |
$res_relation = $this->getBdd()->recupererTous($req_relation); |
508,7 → 507,6 |
$req = 'SELECT num_tax_sup, count(*) as nb FROM '.$this->table |
.' WHERE num_tax_sup IN ('.implode(',',$tab_num) |
.') AND num_nom = num_nom_retenu GROUP BY num_tax_sup'; |
$res = $this->getBdd()->recupererTous($req); |
if ($res) { |
$resultat = $res; |
/trunk/services/modules/0.1/bdtxa/Taxons.php |
---|
222,7 → 222,7 |
public function recupererIdInf() { |
//SELECT num_nom FROM bfdtx_v2_00 WHERE num_tax_sup = (SELECT num_nom FROM bdtfx_v2_00 WHERE num_nom = X); |
$req_relation = 'SELECT num_nom FROM '.$this->table |
.' WHERE num_nom = num_nom_retenu AND num_tax_sup = (SELECT num_nom FROM ' |
.' WHERE num_tax_sup = (SELECT num_nom FROM ' |
.$this->table |
.' WHERE '.implode(' AND ', $this->requete_condition).')'; |
$res_relation = $this->getBdd()->recupererTous($req_relation); |
232,7 → 232,6 |
public function recupererIdSup() { |
//SELECT num_nom FROM bfdtx_v2_00 WHERE num_nom = (SELECT num_tax_sup FROM bdtfx_v2_00 WHERE num_nom = X); |
$this->requete_condition[] = "num_nom = num_nom_retenu" ; |
$req_relation = 'SELECT num_tax_sup as num_nom FROM '.$this->table |
.' WHERE '.implode(' AND ', $this->requete_condition); |
$res_relation = $this->getBdd()->recupererTous($req_relation); |
/trunk/services/modules/0.1/apd/Taxons.php |
---|
222,7 → 222,7 |
public function recupererIdInf() { |
//SELECT num_nom FROM bfdtx_v2_00 WHERE num_tax_sup = (SELECT num_nom FROM bdtfx_v2_00 WHERE num_nom = X); |
$req_relation = 'SELECT num_nom FROM '.$this->table |
.' WHERE num_nom = num_nom_retenu AND num_tax_sup = (SELECT num_nom FROM ' |
.' WHERE num_tax_sup = (SELECT num_nom FROM ' |
.$this->table |
.' WHERE '.implode(' AND ', $this->requete_condition).')'; |
$res_relation = $this->getBdd()->recupererTous($req_relation); |
232,7 → 232,6 |
public function recupererIdSup() { |
//SELECT num_nom FROM bfdtx_v2_00 WHERE num_nom = (SELECT num_tax_sup FROM bdtfx_v2_00 WHERE num_nom = X); |
$this->requete_condition[] = "num_nom = num_nom_retenu" ; |
$req_relation = 'SELECT num_tax_sup as num_nom FROM '.$this->table |
.' WHERE '.implode(' AND ', $this->requete_condition); |
$res_relation = $this->getBdd()->recupererTous($req_relation); |
/trunk/services/modules/0.1/bdtfx/Taxons.php |
---|
222,7 → 222,7 |
public function recupererIdInf() { |
//SELECT num_nom FROM bfdtx_v2_00 WHERE num_tax_sup = (SELECT num_nom FROM bdtfx_v2_00 WHERE num_nom = X); |
$req_relation = 'SELECT num_nom FROM '.$this->table |
.' WHERE num_nom = num_nom_retenu AND num_tax_sup = (SELECT num_nom FROM ' |
.' WHERE num_tax_sup = (SELECT num_nom FROM ' |
.$this->table |
.' WHERE '.implode(' AND ', $this->requete_condition).')'; |
$res_relation = $this->getBdd()->recupererTous($req_relation . ' -- ' . __FILE__ . ':' . __LINE__ ); |
232,7 → 232,6 |
public function recupererIdSup() { |
//SELECT num_nom FROM bfdtx_v2_00 WHERE num_nom = (SELECT num_tax_sup FROM bdtfx_v2_00 WHERE num_nom = X); |
$this->requete_condition[] = "num_nom = num_nom_retenu" ; |
$req_relation = 'SELECT num_tax_sup as num_nom FROM '.$this->table |
.' WHERE '.implode(' AND ', $this->requete_condition); |
$res_relation = $this->getBdd()->recupererTous($req_relation . ' -- ' . __FILE__ . ':' . __LINE__ ); |