- Joined
- Sep 14, 2007
- Messages
- 88
- Reaction score
- 0
ok so http://indy.hotelzero.net/login.htm register there then log in youll get error
and the source of the code is
PHP:
Parse error: parse error, unexpected T_STRING in /home/www/indy.hotelzero.net/login.php on line 22
PHP:
//Connect to database
<?php
session_start();
$username = $_POST[‘username’];
$password = md5($_POST[‘password’]);
$query = “select * from users where username=’$username’ and password=’$password’”;
$result = mysql_query($query);
if (mysql_num_rows($result) != 1) {
$error = “Bad Login”;
include “login.html”;
} else {
$_SESSION[‘username’] = “$username”;
include “memberspage.php”;
}
?>