با سلام به تمامی دوستان
در این سورس که در مورد اهراز هویت کاربران می باشد بنده با مشکلی مواجه شدم می خواستم بدونم اول اینکه آیا این سورس کلا درست هست و دیگه اینکه این error مربوط به چیه و طور اصلاح میشه
با تشکر
$connectionstring=odbc_connect("Users","","");
$query = "select * from tblUsers where username like '".$_GET['user']."' and password = '".$_GET['pas']."'";
$result = odbc_do($connectionstring, $query);
odbc_result_all($result,"border=1");
odbc_close($connectionstring);
if (odbc_num_rows($result) == 1) {
setcookie("user",'".$_GET[user]."');
return 1;
?>
<h1>Authorized!</h1>
<?
} else {
?>
<h3>Sorry, you are not authorized!</h3>
<?
return 0;
}
No rows found
Warning: odbc_num_rows(): 2 is not a valid ODBC result resource in C:\Documents and Settings\Administrator\Desktop\Sa.php on line 7
Sorry, you are not authorized
با تشک