RE: [PHP-DEV] An error

From: Date: Sat, 06 Mar 1999 18:47:08 +0000
Subject: RE: [PHP-DEV] An error
Groups: php.dev 
Request: Send a blank email to php-dev+get-4496@lists.php.net to get a copy of this message
> > Line 5 contains: > > $conn = ora_login("test/passwd@sid", ""); > > > > Any idea? > > There is no parse error on that line. Look at the lines > around that one. > > -Rasmus The whole code... <? dl(php3_oci73) // putenv("ORACLE_SID=SID"); - as Ora is on remota machine. // putenv("ORACLE_HOME=/opt/oracle/oracle/8.0.3"); $conn = ora_login("user/passw@sid", ""); $curs = ora_open($conn); ora_commitoff($conn); $query = sprintf("select * from ki_customer_groups"); /* Long version */ /* ora_parse($curs, $query); ora_exec($curs); ora_fetch($curs); */ /* Short Version */ ora_do($conn, $query); $ncols = ora_numcols($curs); $nrows = ora_numrows($curs); printf("Result size is $ncols cols by $nrows rows.<br>"); for ($i=0; $i<$ncols; $i++) { printf("col[%s] = %s type[%d] = %s<br>", $i, ora_columnname($curs, $i), $i, ora_columntype($curs, $i)); } for ($j=0; $j<$nrows; $j++) { for ($i=0; $i<$ncols; $i++) { $col = ora_getcolumn($curs, $i); printf("val[%d, %d] = %s * ", $j, $i, ora_getcolumn($curs, $i); } printf("<br>"); } ?> as you can seee it is a part of online php3 manual. Maybe there can be some broblem with php configuration? Thanx, jb -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4496) next »