Posted by:
bobby
(---.dip0.t-ipconnect.de)
Hi,
Thanks for your contribution. Actually i did check the ini file and changed the error reporting as you put it, and it did work. Thanks a Zillion for that. I can now test and preview my pages locally.
Also I don't know if you could also be of help. I encoutered a problem with a login script i tried to program and here is the error message
Parse error: parse error in C:\wamp\www\site\loginen.php on line 21. here is the script
<?php
session_start();
$username = $_POST['username'];
$password = $_POST['password'];
include ("scripts/connect.php"
;
if ($username && $password);
{
// info is provided
$queryget = mysql_query("SELECT*FROM users WHERE usersname= '$username' AND password = '$password'"
;
$numrows = mysql_num_rows($queryget);
if ($numrows != 0)
{
$_SESSION['username'] = $username;
echo "You have been logged in";
}
else
echo "Your username was not found";
}
else
{
echo "You did not provide the proper info needed for login";
include ("scripts/connect.php"
;
}
?>