// session check session_start(); if (!session_is_registered("SESSION_NAME")) { // if session check fails, invoke error handler header("Location: login.php"); exit(); } ?> include ("../connect.php"); if ($userid == "") {$userid == "";} if ($userpass == "") {$userpass == "";} $result = mysql_query ("select * from faq_admin where userid = '$userid' and userpass = '$userpass' "); if ($row = mysql_fetch_array($result)) { do{ print "