Re: oci/php/OCIDefineByName
| From: | Thies C. Arntzen | Date: | Wed, 18 Aug 1999 16:15:54 +0000 |
| Subject: | Re: oci/php/OCIDefineByName | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-9981@lists.php.net to get a copy of this message | ||
hi,
<?php
/*
thies@digicol.de (990609)
note that there's NO error handling in here!
*/
$con = ocilogon("scott","tiger");
$stmt = ociparse($con,"select TABLE_NAME from tabs");
$table_name = "";
ocidefinebyname($stmt,"TABLE_NAME",&$table_name);
$err = ociexecute($stmt);
while (ocifetch($stmt))
{ echo $table_name."\n";
}
ocifreestatement($stmt);
ocilogoff($con);
?>
works with php3 and php4 - what is your problem?
BTW: please send stuff like that to one of the mailing-lists, thanx
tc
On Wed, 18 Aug 1999, Kent Skaar wrote:
> can you by looking at your own code ( :) ) in the manual spot
> anything in the OCIDefineByName-example, that make it breake
> whith php4?
>
> http://www.php.net/manual/function.ocibindbyname.php3
>
> I'm having a hard time getting any debugging information
> from it at least.
>
> /skaar
>
> --
> --------------------------------------------------------------------
> kent skaar chalmers university of technology. IT-dep
> skaar@ita.chalmers.se sys adm
> --------------------------------------------------------------------
>
>
>
>
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany