Access|object|oracle
Calling Example:
?
$conn = Ocilogon ("Www_cec", "Webchn99", "unicorn");
#or can just inclued file like "Include (" modcec_oci_conn.php3 ");"
$newOda = new ODA ($conn);
#################
#or can use Login to
# $newOda-=new ODA ();
# $newOda ("www", "->logon", "corn");
###############################################
$newOda->cmdstring= "Update test set nouse= ' DFS ' where login_name= ' Guoyafeng '";
if (! $newOda->execute ()) {
Echo $newOda->err;
}
Else
{
Echo $newOda->rows; #get the affected row number.
}
#or can call execute like this####
/*
$newOda->execute ("Update test set nouse= ' DFS ' where login_name= ' Guoyafeng '");
*/
#############################
#the following demostrate the Open method.
$newOda->open ("SELECT * from Test")) or $newOda->err;
#Get data from RS
echo "Count is". $newOda->rows;
For ($i =0 $i < $newOda->rows; $i + +)
For ($j =0 $j < $newOda->cols; $j + +)
{
echo $newOda->rs[$i] [$j];
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.