include"admin/conn.php";
$sql="select * from user where username='$user' and password='$pass' ";
$result=mysql_db_query($dbname,$sql);
$rs=mysql_fetch_array($result);
$num=mysql_num_rows($result);
$id=$rs[id];
$name=$rs[$name];
$username=$rs[username];
$status=$rs[status];
mysql_close();