Jump to content
MakeWebGames

ERROR?


xpannex
 Share

Recommended Posts

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([email protected]$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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...