Trying to find some help with a custom cms I am using, I need it to make forum accounts aswell for site but finding it really hard
here is some of the code I think needs to be changed
PHP Code:
$query=mysql_query("SELECT displayname FROM forum_accounts WHERE displayname='".$_POST['nick']."'");
if (mysql_num_rows($query)!=0) {
$haserrors .="Display Name already exists
PHP Code:
$queryb=mysql_query("INSERT INTO forum_accounts(id_account,location,showlocation,bday,showbday,signature,enableemail,gmt,webpage,fname,
lname,passask,passans,city,aim,msn,yahoo,skype,icq,enablepm,template,displayname,lastlogin,activation, gender) VALUES(LAST_INSERT_ID(),'".$_SESSION['CA_lo']."',
I have tried replacing the forum_accounts to phpbb_users but gettin alot of errors