session_start(); if($s_name==''){ header("location:login.php"); } include("connection.php"); $sel = mysql_query("select * from users where UserName='$s_name'"); $row = mysql_fetch_array($sel); ?>