Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Register page PHP

Initiate Mage
Joined
Jun 24, 2019
Messages
50
Reaction score
7
Thx alot!
I just add a value to auto match about idnum in tb_user
heres the fix part

if ($error!=1){
$id_last = pg_query ("select id from accounts order by id desc");
$id_result = pg_fetch_array ($id_last);
$id_last = $id_result["id"] +1 ;
$id_get = $id_result["id"] +1 ;
//echo "$id_last";
$sql = pg_query("insert into accounts (id,username,password) values ('$id_last','$login','$login')");
$connn = pg_connect("host=youriphere dbname=ffmember user=postgres password=yourdbpassword port=5432");
$id_result = pg_fetch_array ($id_last);
$sql2 = pg_query ("insert into tb_user (mid,password,pwd,idnum) values ('$login','$login','$passcript',$id_get)");
 
Initiate Mage
Joined
Oct 2, 2021
Messages
24
Reaction score
1
I'm sorry to ask you this, but would it help me to pin it to my database? I do not understand very well but, it is what I was looking for to invite my friends to play on my server. thanks for your wonderful work
 
Back
Top