what if there is no record
Posted: Tue Jun 03, 2003 2:24 pm
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
$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