can any fix this script?
if you do i will post how to make a world 2 that is members only im stuck on the last part this stupid php script ... :L
thanks for any help!
Code:
<?php
$host = "localhost";
$user = "Hax";
$pass = "YES";
$name = "login";
$_GET['name'] = str_replace("_"," ",$_GET['name']);
if($_GET['crypt'] !=102510){
echo '-1';
exit;
}
if([email protected]_connect($host, $user, $pass)) {
die("error connecting to mysql server - " . mysql_error());
}
if([email protected]_select_db($name)) {
die("error selecting mysql database - " . mysql_error());
}
$query = mysql_query("SELECT * FROM users WHERE username = '".$_GET['name']."'");
if($row = mysql_fetch_array($query)){
$pass2 = md5($_GET['pass']);
$mem = "420";
if($pass2 == $row["password"]){
echo '2';
}else{
echo '1';
}else{
echo '0';
}
if($row["ismem"] == $mem){
echo '660';
}else{
echo '066';
}else{
echo '666';
}
?>
Error:
Code:
Parse error: syntax error, unexpected T_ELSE in C:\wamp\www\checkuser.php on line 26