>
> My login.php
>
> <?php
> $username = $_GET['fname'];
> $password = $_GET['fpass'];
> $con=mysqli_connect("localhost","dbuser","dbpass","database");
> // Check connection
> if (mysqli_connect_errno())
> {
> echo "Failed to connect to MySQL: " . mysqli_connect_error();
> }
> <br> $qz = "SELECT id FROM members where username='".$username."' and password='".$password."'" ;
> $qz = str_replace("\'","",$qz);
> $result = mysqli_query($con,$qz);
> <br> while($row = mysqli_fetch_array($result))
> {
> echo $row['id'];
> }
> <br> mysqli_close($con);
> ?>
>
> plz help
Those <br> tags shouldn't be there anyway. I see they're in the tutorial code too - must be a copy-paste error.
Nice that was the Error
Thx you are my hero for today ;-)