i get a error Login Server›
Warning: fsockopen() [function.fsockopen]: unable to connect to 127.0.0.1:9958 (Se produjo un error durante el intento de conexi�n ya que la parte conectada no respondi� adecuadamente tras un periodo de tiempo, o bien se produjo un error en la conexi�n establecida ya que el host conectado no ha podido responder. ) in C:\AppServ\www\classes\class.configs.php on line 129
Offline Game Server›
Warning: fsockopen() [function.fsockopen]: unable to connect to 127.0.0.1:5816 (Se produjo un error durante el intento de conexi�n ya que la parte conectada no respondi� adecuadamente tras un periodo de tiempo, o bien se produjo un error en la conexi�n establecida ya que el host conectado no ha podido responder. ) in C:\AppServ\www\classes\class.configs.php on line 129
??
Hello, i have tried this.
i got it working to some point.
i CAN change the password of an existing account, tested it by making one in phpmyadmin and seeing the password being changed.
however when i try to make an account it throws me an error saying it cannot create an account.
any idea ?
$check = $this->conn->query("SELECT * FROM accounts WHERE username = '".$this->username."'");
//accounts is your table, and username is your row.
$ins_m = $this->conn->prepare("INSERT INTO accounts (username, password, email, question, answer, idnumber) VALUES (:username, :password, :email, :question, :answer, :idnumber)");
//as for this each insert into is for your rows, you will need to change this for different databases. some wont have a question and answer field or an id number.
oh forgot to add values are from the register page so you will need to remove values if u remove a row.
$check = $this->conn->query("SELECT * FROM accounts WHERE username = '".$this->username."'");
//accounts is your table, and username is your row.
$ins_m = $this->conn->prepare("INSERT INTO accounts (username, password, email, question, answer, idnumber) VALUES (:username, :password, :email, :question, :answer, :idnumber)");
//as for this each insert into is for your rows, you will need to change this for different databases. some wont have a question and answer field or an id number.
oh forgot to add values are from the register page so you will need to remove values if u remove a row.
Where do i have to add that?
I got some errors like in register:
Quote:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AppServ\www\conquer2\index.php:81) in C:\AppServ\www\conquer2\classes\class.account.php on line 2
and in change pass:
Quote:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AppServ\www\conquer2\index.php:81) in C:\AppServ\www\conquer2\modules\change_password.ph p on line 2
And in Ranking:
Quote:
Warning: include(../classes/class.configs.php) [function.include]: failed to open stream: No such file or directory in C:\AppServ\www\conquer2\classes\class.rank.php on line 16
Warning: include() [function.include]: Failed opening '../classes/class.configs.php' for inclusion (include_path='.;C:\php6\pear') in C:\AppServ\www\conquer2\classes\class.rank.php on line 16
and at server status
Quote:
›
Warning: fsockopen() [function.fsockopen]: unable to connect to 5.181.18.192:9958 ... in C:\AppServ\www\conquer2\classes\class.configs.php on line 129
Offline
I tried to google the problems and i tried to solve it but nothing works :S
so how to fix this?
Right sorry about that, class.account.php is where ur going to want to edit the table names and rows, and you will also have the register.php file is where all the user input comes from for the values..
Starting my own Conquer site... 06/02/2010 - CO2 Programming - 0 Replies Starting with packet structs, and working through memory functions later. Will also have tutorials and some example classes for different languages on how to do some things.
Main Page (Conquer Online Documentation)
conquer v2 new site + server is on soon 02/18/2009 - CO2 Private Server - 11 Replies heey people conquer v2 has an new site join it today website Link here server will be up soon join today and become vip.
fully translated server every bug fixed from patch 5065 when we got mor players we will update is to an higher patch..
our site has chatbox reg page etc new style look for yourself
p.s dont flame this topic