Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help with admin longin MD5


Guest

Recommended Posts

When I upload the files to my host's server all of a sudden I am getting a couple of errors.

 

Here are the errors:

 

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/foxglove/public_html/catalog/admin/adminProcessLogin.php on line 28

 

Warning: Cannot modify header information - headers already sent by (output started at /home/foxglove/public_html/catalog/admin/adminProcessLogin.php:28) in /home/foxglove/public_html/catalog/admin/adminProcessLogin.php on line 37

 

here is the line in my adminprocesslogin.php:

 

// Run The Query Without a Limit to get Total result

$SQL="SELECT * FROM Admin WHERE Login = '".strtolower($Login)."' and Password = '".$Password."'";
$SQL_Result=mysql_db_query(DB_DATABASE, $SQL);
$SQL_Rows=mysql_num_rows($SQL_Result);

// Use $HTTP_SESSION_VARS with PHP 4.0.6 or less

if ($SQL_Rows > 0) {
$_SESSION['IsAdminLoggedIn'] = 1;
header("Location: index.php");
} else {	
$_SESSION['IsAdminLoggedIn'] = 0;
header("Location: index_login.php?ALE=1");	
}
?>

 

What the heck is going on? is the error in the Configure.php script? I am going crazy.

 

Please Help!

 

Frank

Link to comment
Share on other sites

search the knowledge base for:

 

headers already sent

 

you have some whitespace in the file

 

I would normally agree with you but, it works fine on my local server, and this only started happning when I uploaded it to my host's server.

 

That is what is so confusing.

 

Frank

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...