well i'm simply trying to get the code to work lol
All this code is missing when i look at the source code on my website but when i look at the code in the login.php file on my ftp it's all thier
if ($_POST['loginbutton']){
$user = $_POST['username'];
$password = $_POST['password'];
if ($user && $password && $user != 'Username'){
require("Scripts/connect.php");
$password = md5($password);
$query = mysql_query("SELECT * FROM users WHERE username='$user' AND password='$password'");
$numrows = mysql_num_rows($query);
if ($numrows = 1){
$rows = mysql_fetch_assoc($query);
$dbuser = $rows['username'];
$_SESSION['user'] = $dbuser;
$_SESSION['id'] = $dbid;
echo "<a href='index.php'> You are now loged in Click here to go to our Homepage</a>";
}
else
echo '<center>You did not submit a correct username and/or password!</center>';
echo '$form';
}
else
echo '<center>You did not submit a correct username and/or password!</center>';
echo '$form';
}
else{
echo '$form';
}
website is www.hostgamer.co.uk/login.php
also onn dreamweaver with live view select the missing code shows under the login box (pic attached) :'(
[attachment deleted by admin]