TC5Racer wrote:
> I am still experiencing the
> same error as before. The login page just sits there.
Locate the following section of code:
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = mysql_result($LoginRS,0,'admin_priv');
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
Temporarily amend it like this:
$loginFoundUser = mysql_num_rows($LoginRS);
// find out if user was found
echo "User found: $loginFoundUser<br />";
if ($loginFoundUser) {
$loginStrGroup = mysql_result($LoginRS,0,'admin_priv');
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
// see if session variables OK
echo $_SESSION['MM_Username'] . '<br />';
echo $_SESSION['MM_UserGroup'];
After adding those temporary changes, you definitely won't be
able to
log in, but you should be able to tell what's happening. The
first
message should display "User found: 1", and the others should
display
the value of the session variables.
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/