Re: CONEXION

From: Date: Wed, 18 Jun 2003 21:15:23 +0000
Subject: Re: CONEXION
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-37528@lists.php.net to get a copy of this message
1) NO NOS GRITES!!! No somos sordos. 2) ora_fetch_into tiene 2 parámetros. En el segundo va un array con los resultados. En tu caso while(ora_fetch_into($a,$b)) 3) Nunca usé ora_fetch_into(), y no estoy seguro de que te devuelva un false como para poder plantear así el while. ----- Original Message ----- From: "cesar nuñez" <cesar_nk@hotmail.com> To: <lista@phpes.com> Sent: Wednesday, June 18, 2003 5:22 PM Subject: [PHP-ES] CONEXION > SALUDOS !!!!! > > POR FAVOR TENGO UN PROBLEMA CON LA CONEXION DE PHP 4.1.1 Y ORACLE 7.3 > ......EXISTE ALGUN PROBLEMA DE INCOMPATIBILIDAD??? , PORQUE LA CONEXION LA > PUDE HACER PERO CON EL PHP 3.0.18............. CUALES SON LOS PASOS A SEGUIR > ???? > > * OTRA CONSULTA : - ME PUEDEN DECIR COMO DEBE SER EL CODIGO PARA MOSTRAR > DATA DESDE UNA BASE DE DATOS ORACLE ???? > > AL CARGAR EL SGTE. CODIGO ME APARECE EL SGTE ERROR : > <?php > putenv("ORACLE_SID=ORCL"); > putenv("ORACLE_HOME=C:\ORANT"); > putenv("TNS_ADMIN=C:\ORANT\NETWORK\ADMIN"); > $conectar=ora_logon("scott@prueba.world","tiger"); > $result=ora_open($conectar); > $a=ora_parse($result,"select nombre from R5R_ROL"); > while($b=ora_fetch_into($a)){ > $tot=$b["nombre"]; > echo $tot;} > ora_logoff($conectar); > ?> > > ERROR : > > Warning: Wrong parameter count for ora_fetch_into() in > c:\apache\htdocs/oracleconsulta.php on line 8 > > > > muchas gracias > > _________________________________________________________________ > Charla con tus amigos en línea mediante MSN Messenger: > http://messenger.yupimsn.com/ > > > --------------------------------------------------------------------- > Archivo On-line: http://www.phpes.com/ > via news: news://news.phpes.com/ > Manual PHP en español: http://www.php.net/manual/es/ > Para dar de baja la suscripción, mande un mensaje a: > lista-unsubscribe@phpes.com > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.489 / Virus Database: 288 - Release Date: 10/06/03

« previous php.general.es (#37528) next »