mysql_fetch_array et oci_fetch_array
Bonjour tout le monde,
j'aurais voulu savoir si les fonctions suivantes ont le meme resulat :
oci_fetch_array()
mysql_fetch_array()
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| function requete_fetch_array() {
//nombre de champs
$nb_champs = ocinumcols($this->PARSE);
$this->TABLEAU = array();
ocifetchinto($this->PARSE, $ligne, OCI_ASSOC);
for ($i=1;$i<=$nb_champs;$i++) {
$this->TABLEAU[ocicolumnname($this->PARSE,$i)] = $ligne[ocicolumnname($this->PARSE,$i)];
}
return $this->TABLEAU;
} |
Car en fait dans mon code actuellement j'avais fait appel à oci_fetch_array mais il me met "supplied argument is not a valid " donc je tente autre chose ...