Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 2000051

Re: [PHP3] A simple documetation From: Andrew Pearce (Andrew <email protected>)
Date: 05/03/00

to connect to Oracle8i do the following:

/* Connect to Oracle */
$conn = OCILogon("Username","password");
/* Connected */

to query the database do the following:

$stmt = ociparse($conn,"sql query");
ociexecute($stmt);
$nrows = OCIFetchStatement($stmt,$results);

$results is an array and contains the resultset of your query.

to extract the first element of the array try:

$column = each($results);
$data = $column['value'];
echo "$data";

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>