note 98977 deleted from faq by kalle
| From: | kalle@php.net | Date: | Wed, 20 Oct 2010 05:18:18 +0000 |
| Subject: | note 98977 deleted from faq by kalle | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-173296@lists.php.net to get a copy of this message | ||
Note Submitter: zad_k at yahoo dot com
----
I'll try to do some script but i have proble with
while($sql_login_rst = mysql_fetch_array getting error "PHP Warning: mysql_fetch_array():
supplied argument is not a valid MySQL result resource"
tq
if(isset($_POST['btn_login'])){
$displayName = "Admin";
$sql_login = "Select * From user_access Where
username='".$_POST['log_username']."' And
password='".$_POST['log_password']."'";
$sql_login_qry = mysql_query($sql_login);
while($sql_login_rst = mysql_fetch_array($sql_login_qry)){
$_SESSION['UID'] = $sql_login_rst['UID'];
$_SESSION['LVL'] = $sql_login_rst['level'];
$_SESSION['FTIME'] = $sql_login_rst['firsttime'];