Renamed users table so it doesn't conflict with another site, in case you use the same database.

This commit is contained in:
Elyrith
2013-08-11 22:44:10 -04:00
parent 4a1fe7bad6
commit be86ecdaa1
2 changed files with 4 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ if ( $_COOKIE['session'] ) { // If yes, continue loading page as normal
# Attempt login
require "dbconnect.php";
$sql = "SELECT id,username FROM users WHERE username='$_POST[username]' and password=PASSWORD('$_POST[password]')";
$sql = "SELECT id,username FROM blog_users WHERE username='$_POST[username]' and password=PASSWORD('$_POST[password]')";
$result = mysql_query($sql) or die (mysql_error());
# echo "Results: " . mysql_num_rows($result); // Debugging line