The PHP Programmer I was using has disappeared, and he has left me with a log in script that generates a 404 not found error when you try and log in using any of the usernames or passwords. It was working, he made some change, then it stopped working for every user. All I want to do is to remove the login option so I can use the database.
The problem is I don’t know PHP well enough yet not to screw it up!!
Here is the script:
[code]
<?php // Buzz inet PHPLS04 - Check User Level session_start(); if(!isset($HTTP_SESSION_VARS['sessionlevel'])){ header("Location: ../Client/default.php"); } else { if($HTTP_SESSION_VARS['sessionlevel'] == M){ header("Location: ../Client/default.php"); } } ?> <?php require_once('../Connections/mydatabase.php'); ?> <?php $colname_SessionUser = "1"; if (isset($_SESSION['sessionuser'])) { $colname_SessionUser = (get_magic_quotes_gpc()) ? $_SESSION['sessionuser'] : addslashes($_SESSION['sessionuser']); } mysql_select_db($database_mydatabase, $mydatabase); $query_SessionUser = sprintf("SELECT * FROM CustomerAccess WHERE CustUsername = '%s'", $colname_SessionUser); $SessionUser = mysql_query($query_SessionUser, $mydatabase) or die(mysql_error()); $row_SessionUser = mysql_fetch_assoc($SessionUser); $totalRows_SessionUser = mysql_num_rows($SessionUser); ?> Home[/code][/code]