'; $tbl_name="shabka_members"; $sql="SELECT * FROM $tbl_name WHERE username='$_COOKIE[name]' and password='$_COOKIE[pass]'"; $result=mysql_query($sql); $count = mysql_num_rows($result); while($row [email protected]_fetch_array($result)) { $id=$row[id]; $name=$row[username]; $pass=$row[password]; } if($count==1){ include('func/index.php'); } else{ include('func/main.php'); } ?>