PHP: ocicolumnisnull - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ocicolumnname ocicolltrim

Last updated: Fri, 26 Jan 2007

view this page in

# ocicolumnisnull

(PHP 3 >= 3.0.4, PHP 4, PHP 5)

ocicolumnisnull -- Alias of oci_field_is_null()

## Описание

This function is an alias of: oci_field_is_null().

add a note User Contributed Notes
ocicolumnisnull
Raju Joseph [RajuJoseph at usa dot net]
14-Sep-2003 07:36
`<?php
// Connect to Oracle database.
// Username : Raju
// Password : Password
// Database : Database_name
$conn=OCILogon("Raju", "Password", "DATABASE_NAME");
if ( ! $conn ) {
echo "Unable to connect: " . var_dump( OCIError() );
die();
}
// Select Data...
// DESC[RIBE] COMPANY
// CompanyID VARCHAR2(10)
// CompanyName VARCHAR2(30)
// LastUserID VARCHAR2(15)
// LastDate DATE
//
$query = "SELECT * FROM Company";
$result = OCIParse($conn, $query);
OCIExecute($result, OCI_DEFAULT);
while (OCIFetchInto ($result, $row, OCI_ASSOC)) {
// Usage of OCIcolumnisnull()
if (OCIcolumnisnull($result, 'CompanyName')) {
print ( "<P>" . $row['CompanyID'] . "--->" . "Company Name NOT found !! " . "<P>" );
}
else {
print ("<P>" . $row['CompanyID'] . "--->" . $row['CompanyName'] . "<P>" );
}
}
// Close connection from Oracle...
OCILogoff($conn);
?>`
add a note
ocicolumnname ocicolltrim

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST