Page 1 of 1

what if there is no record

Posted: Tue Jun 03, 2003 2:24 pm
by jiehuang001
I have been using the following code to get result from an Oracle database:
$conn= //details omitted
$stmt = ociparse($conn,$query);
while (OCIFetch($stmt)) {
//do something
}

How can I print "sorry, no record" if there is no record?

Thanks.

Jie Huang

Posted: Tue Jun 03, 2003 5:57 pm
by McGruff
Never used Oracle but found this in the php manual: Ora_Numrows