Salut donc voici la function qui pose probleme:

fichier session
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function searchByIdSession($idSession) {
 
		$requete = "select * ";
		$requete = $requete." from session where id_session = '".$idSession."';";
 
		$resultat = $this->bd->execRequete($requete);
 
		$ligne = oci_fetch_array($resultat);
 
		// Initialisation des attributs
		$this->id_Session 		= $ligne['ID_SESSION'];
		$this->id_Direction 		= $ligne['ID_DIRECTION'];
		$this->id_Personne	 	= $ligne['ID_PERSONNE'];		
		$this->login_Session 		= $ligne['LOGIN_SESSION'];
		$this->nom_Session 		= $ligne['NOM_SESSION'];
		$this->prenom_Session 		= $ligne['PRENOM_SESSION'];
		$this->temps_Limite		= $ligne['TEMPS_LIMITE'];
		$this->errMsg			= "";
		$this->error 			= false;	
 
		return $this;
	}

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function execRequete($sql) {
 
 
	$this->PARSE = ociparse($this->CONNECT,$sql);
 
		if(!$this->PARSE) {
			$this->error 	= true;
			$this->errMsg 	= "<B>Requête non valide</B> [<i>$sql</i>]: ".ocierror()." ";
		} else {
			$this->REQS = ociexecute($this->PARSE);
			if (!$this->REQS) {
				$this->error 	= true;
				$this->errMsg 	= "<B>Requête impossible</B> [<i>$sql</i>]: ".ocierror()." ";    			
			}
			return $this->REQS;
		}
		ocicommit($this->CONNECT);
 
	}

Sous easy php il me met :
Fatal error: Call to undefined function: oci_fetch_array() in f:\doc\source\session.php on line 251

Dans le fichier php.ini j'ai bien activé extension=php_oci8.dll

En fait avant oci_fetch_array il y avait mysql_fetch_array car je dois passer l'apply de mysql vers oracle mais bon ca doit pas changer grand chose si?

D'ailleur extension=php_oracle.dll il faut l'activer aussi?



Merci d'avance