Help correctly to write script on aundification with the help DB Oracle.
<?php
require ('/home/web/RootWeb1/TEST/oleg/common.inc');
$referer;
$conn = OciPlogon($user, $password, $db);
$rez = veruser($conn);
if ($rez!='true')
{
echo "user login faild\n";
echo "error:$rez";
}
$OciLogOff ($conn);
function veruser($conn){
GLOBAL $conn;
if (!$conn)
$cur = OciNewCursor($conn);
if (!$cur)
$par = OciParse($conn, "select users from userpass");
if ($par == 1)
$rez = OciExecute($par);
if (!$rez)
$fet = OciFetch($cur);
if (!$fet)
$numcol = OciNumCols($cur);
if ($numcol == 0)
for ($i=0; $i,$numcol; $i++)
{
echo OciResult ($cur, $i). "<br>\n";
}
return true;
}
?>
<?php
require ('/home/web/RootWeb1/TEST/oleg/common.inc');
$referer;
$conn = OciPlogon($user, $password, $db);
$rez = veruser($conn);
if ($rez!='true')
{
echo "user login faild\n";
echo "error:$rez";
}
$OciLogOff ($conn);
function veruser($conn){
GLOBAL $conn;
if (!$conn)
$cur = OciNewCursor($conn);
if (!$cur)
$par = OciParse($conn, "select users from userpass");
if ($par == 1)
$rez = OciExecute($par);
if (!$rez)
$fet = OciFetch($cur);
if (!$fet)
$numcol = OciNumCols($cur);
if ($numcol == 0)
for ($i=0; $i,$numcol; $i++)
{
echo OciResult ($cur, $i). "<br>\n";
}
return true;
}
?>