<?php $query = " select * from users2 where username=’$username’ and password=’$password’ "; ?>
Błąd jest w pierwszej linijce.
Ma ktos pomysł jak ro rozwiązać ?
<?php $query = " select * from users2 where username=’$username’ and password=’$password’ "; ?>
<?php $dbhost = "localhost"; $dbname = "name"; $dbuser = "user"; $dbpass = "pass"; $username = $_POST[‘username’]; $query = "SELECT * FROM users2 WHERE username='$username' AND password='$password'"; $error = "Bad Login"; include “login.html”; } else { $_SESSION[‘username’] = "$username"; include "members.php"; } ?>
<?php // members page include 'login.html'; } else { } ?> <html> <head> <title>MEMBERS ONLY</title> </head> <body> Your Members Page.... </body> </html>
<?php $team = $_SESSION['team']; $logo = $_SESSION['logo']; $username = $_SESSION['username']; Nazwa: $team logo: $logo \"; ?>
<?php include 'login.html'; } else { } ?> <html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <title>MEMBERS ONLY</title> </head> <body> <?php $team = $_SESSION['team']; $logo = $_SESSION['logo']; $username = $_SESSION['username']; ?> </body> </html>