Jump to content
MakeWebGames

xpannex

Members
  • Posts

    2
  • Joined

  • Last visited

    Never

xpannex's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: ERROR? ok i fixed this.. but when i import the SQL file phaos_data from Kallen i get error   #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '? INSERT INTO phaos_abilities VALUES (1, 'Light fire', 0)' at line 1
  2. Well.. i've followed ur installation guide to 100%.. but when i load the page its just like my server cant read the PHP.. the whole pages is like: $value) { $$key = get_magic_quotes_gpc() ? $value : addslashes($value); } foreach($_POST as $key=>$value) { $$key = get_magic_quotes_gpc() ? $value : addslashes($value); } // Additional Security Check unset($PHP_PHAOS_CHARID); unset($PHP_PHAOS_CHAR); $auth = false; if(@$PHP_PHAOS_USER && ((@$PHP_PHAOS_MD5PW)||(@$PHP_PHAOS_PW)) ) { if(@$PHP_PHAOS_MD5PW){ $query = "SELECT * FROM phaos_users WHERE username = '$PHP_PHAOS_USER' AND password = '$PHP_PHAOS_MD5PW'"; $result = mysql_query($query); $row= mysql_fetch_array($result); } if(!@$row){ $PHP_PHAOS_MD5PW= md5(@$PHP_PHAOS_PW); $query = "SELECT * FROM phaos_users WHERE username = '$PHP_PHAOS_USER' AND password = '$PHP_PHAOS_MD5PW'"; $result = mysql_query($query); $row= mysql_fetch_array($result); } if ($row) { $auth = true; $lang = $row['lang']; $result = mysql_query("SELECT * FROM phaos_characters WHERE username = '$PHP_PHAOS_USER'"); if ($row = mysql_fetch_array($result)) { $PHP_PHAOS_CHARID = $row['id']; $PHP_PHAOS_CHAR = $row['name']; } else { $PHP_PHAOS_CHARID=0; } if(defined('AUTH')){ setcookie("PHP_PHAOS_USER",$PHP_PHAOS_USER,time()+17280000); // ( REMEMBERS USER NAME FOR 200 DAYS ) setcookie("PHP_PHAOS_MD5PW",$PHP_PHAOS_MD5PW,time()+172800); // ( REMEMBERS USER PASSWORD FOR 2 DAYS ) setcookie('lang',$lang,time()+17280000); // ( REMEMBERS LANGUAGE FOR 200 DAYS ) setcookie("PHP_PHAOS_PW",0,time()-3600); // remove cookie used in version 0.88 } } else { echo(" and even the title is like "echo '';" All my other php games works perfect.. :O
×
×
  • Create New...