php-db | 2001011
Date: 01/11/01
- Next message: Yasuhide OMORI: "Re: [PHP-DB] IBM DB2 and DSN"
- Previous message: CC Zona: "Re: [PHP-DB] sql: LIKE"
- In reply to: David Día: "[PHP-DB] Ora_Bind problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Jan 10, 2001 at 01:37:17PM +0100, David Díaz wrote:
> Hello!!
>
> I've got a problem using Oracle 7 functions. When I'm trying to execute this commands:
>
> Ora_Logon("jajejijoju <email protected>","doolittle");
> $cur = Ora_Open($conn);
> Ora_Parse($cur,"SELECT empresa,sedeprov,codigo,personal,produccion,mercados,
> gestion,sistemas,estudios FROM empresa ORDER BY :empresa");
> Ora_Bind($cur,"empresa",":empresa");
> Ora_Exec($cur,OCI_DEFAULT);
> while (Ora_Fetch($cur)) {
> $empresa = Ora_Getcolumn($cur,"EMPRESA");
> ....
>
> I get these warnings messages:
>
> Warning: Can't find variable for parameter in /opt/www/htdocs/listatotaln.php3 on line 228
if you use ora_bind in a function you have to declare the
bound php-variables global!
tc
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Yasuhide OMORI: "Re: [PHP-DB] IBM DB2 and DSN"
- Previous message: CC Zona: "Re: [PHP-DB] sql: LIKE"
- In reply to: David Día: "[PHP-DB] Ora_Bind problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

