phpbar.de logo

Mailinglisten-Archive

[php] Nochmal Oracle ROWID

[php] Nochmal Oracle ROWID

Markus Fischer mfischer_(at)_josefine.ben.tuwien.ac.at
Thu, 1 Feb 2001 23:00:57 +0100


On Thu, Feb 01, 2001 at 09:36:04AM +0100, Walter Wolf wrote : 
[...]
> OCIDefineByName($stmt,"ROWID",&$rowid);
> ociexecute($stmt, OCI_DEFAULT);
> ocicommit ($conn);
> 
> while (OCIFetchInto($stmt,&$result,OCI_NUM+OCI_RETURN_NULLS))
> {
> 	echo $rowid;
> }

	OCIFetchInto schmeisst dir das gesammte Ergebnis in
$result rein. Verwende statt OCI_NUM OCI_ASSOC, so kannst du
mittels

	$result['ROWID'] darauf zugreifen.

m.

-- 
Markus Fischer,  http://josefine.ben.tuwien.ac.at/~mfischer/
EMail:         mfischer_(at)_josefine.ben.tuwien.ac.at
PGP Public  Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0


php::bar PHP Wiki   -   Listenarchive