I have an annoying problem, I'm trying to write a simple PHP page that
says if a record is found in an Oracle database display 'Data Found'
else display 'No Data Found' but it does not seem to be working. 

<?php

require("../passit.php");

$stmt = OCIParse("select UPI, ORG from WEB_DS where REC_VALUE =
'uczmdsk1'");

OCIExecute($stmt);

echo $stmt;

$nrows = OCIFetchStatement($stmt);

if ($nrows > 0) {

echo "Data found";

} else {

echo "No data found"; 

} 

?>

David

----------------------------------
David Skyers
Support Analyst
Management Systems, UCL
[EMAIL PROTECTED]
020 7679 1849 (internal 41849) 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to