Remove sensless concatenation

This commit is contained in:
Stefan Ritter 2012-03-13 11:49:20 +01:00
parent 600316a94a
commit c584ff1045
2 changed files with 3 additions and 3 deletions

View file

@ -8,7 +8,7 @@ $site_title = "BJack for #rautemusik (POC)";
$db_host = "localhost";
$db_name = "bjack";
$db_user = "bjack";
$db_pass = "bjack2";
$db_pass = "bjack";
/*
* Don't touch this

View file

@ -17,7 +17,7 @@ class Database {
function checkUser($user, $pass) {
$this->connect();
$query = "SELECT pass FROM users WHERE user='" . $user . "'";
$query = "SELECT pass FROM users WHERE user='$user'";
$result = mysql_query($query);
$row = mysql_fetch_row($result);
@ -31,7 +31,7 @@ class Database {
* Create user
*/
$query = "INSERT INTO users(user, pass) VALUES ('" . $user . "', '" . md5($pass) . "')";
$query = "INSERT INTO users(user, pass) VALUES ('$user', '" . md5($pass) . "')";
$result = mysql_query($query);
/*