=10;",$dblink); if (mysql_num_rows($result)){ // login passed... set session parameters $_SESSION["userinfo"]= mysql_fetch_array($result); // set application location (web, not physical) $pathrev=strrev($_SERVER["PHP_SELF"]); $_SESSION["app_path"]=strrev(substr($pathrev,(strpos($pathrev,"/")))); //next update record's lastlogin time $result = mysql_query("UPDATE users set modifieddate=modifieddate, lastlogin=Now() where id = ".$_SESSION["userinfo"]["id"],$dblink); if (!$result)die ("update users query failed:".mysql_error($dblink)); header("Location: ".$_SESSION["default_load_page"]); //register table settings session_register("tableparams"); } else { // Login failed... send to index.php with parameter of no we should already be on the index page... so just set // the failed parameter $failed="Login Failed"; } } ?> <?PHP echo $_SESSION["application_name"]; ?> - Login Page /base.css" rel="stylesheet" type="text/css" />
">

Business Management Web Application

name
password