Help Needed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
d.skyers@xxxxxxxxx
020 7679 1849 (internal 41849) 

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux