error on line 30 parse error
else //line 30 the else statement is the trouble im thinking i either got a extra } or not enought } but to me it seems ok..
heres the code
<?
function encrypt()
{
$pass=md5("$password");
}
function login($username,$pass)
{
function check()
{
mysql_connect("localhost","root","")or die(mysql_error());
mysql_select_db("forums")or die(mysql_error());
$result = mysql_query("SELECT username FROM members WHERE username='$username' AND password='$pass'")or die(mysql_error());
$process=mysql_num_rows($result);
if($process != 0)
{
function logged()
{
if(!empty($cookie))
{
$user = $username;
setcookie("user", $user, time()+60*5);
}
else
{
session_start();
$user = $username;
session_register("user");
}
}
else//line 30 error
{
function notmember()
{
$notregistered="Sorry But that Username And or Password Does not Exist. Pleasae Try Registering if you havent Registered, or Try again, If this persists please email the Webmaster ";
}
}
}
}
?>