Current location: Hot Scripts Forums » Programming Languages » PHP » phpbb3


phpbb3

Reply
  #1 (permalink)  
Old 01-11-09, 11:18 PM
lymia lymia is offline
New Member
 
Join Date: Jun 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
phpbb3

Hi

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


Any help would be appreciated
Reply With Quote
  #2 (permalink)  
Old 01-11-09, 11:26 PM
Keith's Avatar
Keith Keith is offline
Community Liaison
 
Join Date: Feb 2004
Posts: 1,232
Thanks: 1
Thanked 11 Times in 11 Posts
You will have to be more specific than gettin alot of errors.
__________________
The toxic ZCE
Reply With Quote
  #3 (permalink)  
Old 01-11-09, 11:40 PM
lymia lymia is offline
New Member
 
Join Date: Jun 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Sorry forgot errors

Quote:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in \htdocs\inc\account\account.create.php on line 73
Quote:
Unknown column 'city' in 'field list'
Reply With Quote
  #4 (permalink)  
Old 01-12-09, 06:00 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
I'd say it's pretty clear: you're trying to insert a value into a field that doesn't exist in that table
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #5 (permalink)  
Old 01-14-09, 11:00 AM
xEX3CUT1ONx xEX3CUT1ONx is offline
Wannabe Coder
 
Join Date: Jun 2008
Posts: 122
Thanks: 2
Thanked 0 Times in 0 Posts
In your table 'forum_accounts' your missing a field for City, try adding the field in your Sql and try it again
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
custom admin login script... phpbb3 database gaogier PHP 1 10-13-08 03:18 PM
phpbb3 integration using existing login acctman PHP 1 07-08-08 10:40 AM
[SOLVED] WYSIWYG editor for phpBB3. Faisal Shah Script Requests 4 04-16-08 09:44 AM
phpbb3 header replacement DMather PHP 1 06-25-07 04:55 PM


All times are GMT -5. The time now is 08:26 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.