• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Register page PHP

Newbie Spellweaver
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)");
 
Newbie Spellweaver
Joined
Oct 2, 2021
Messages
18
Reaction score
0
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