26

(8 replies, posted in Programming)

So change this : <input name="charname" type="text" id="charname" maxlength="15"'.' value="'.pun_htmlspecialchars($user['charname']).'">

To This: <input name="form[charname]" type="text" id="charname" maxlength="15"'.' value="'.pun_htmlspecialchars($user['charname']).'">

?

27

(8 replies, posted in Programming)

$charnameBox = '<p><input name="charname" type="text" id="charname" maxlength="15"'.' value="'.pun_htmlspecialchars($user['charname']).'"></p>';

                case 'essentials':
                {
                        $form = extract_elements(array('timezone', 'language', 'charname', 'picurl', 'charinpic', 'game'));

Any idea what's wrong?  The value isn't getting updated for some reason :\

28

(8 replies, posted in Programming)

how would I make it add my fields to the DB?  I don't see where I would add them on that quey.  Could I just write another "traditional" query?  I don't know what the implode is lol tongue

Thanks Rickard, your forums are amazing!  big_smile

29

(8 replies, posted in Programming)

I added some fields, but I can't find where the script updates the values in the DB.  I have looked at every "UPDATE" query in the file, and can't seem to find it.  I have run out of ideas, and would appreciate some help!

30

(1 replies, posted in Programming)

Well, I forgot to put the new field in the database, lol tongue

31

(1 replies, posted in Programming)

For some reason my query isn't working :\  I added the new fields and formated them just like the original working query, but I must have done something wrong.

$db->query('INSERT INTO '.$db->prefix.'users (username, group_id, password, email, email_setting, save_pass, timezone, language, style, registered, registration_ip, last_visit, picurl, charname, type, charinpic, category) VALUES(\''.$db->escape($username).'\', '.$intial_group_id.', \''.$password_hash.'\', \''.$email1.'\', '.$email_setting.', '.$save_pass.', '.$timezone.' , \''.$db->escape($language).'\', \''.$pun_config['o_default_style'].'\', '.$now.', \''.get_remote_address().'\', '.$now.', \''.$picurl.'\', \''.$charname.'\', \''.$type.'\', \''.$charinpic.'\', \''.$category.'\')') or error('Unable to create user', __FILE__, __LINE__, $db->error());

Help would be greatly appreciated.

32

(5 replies, posted in Programming)

Update:  Worked

Thanks a lot Med big_smile

33

(5 replies, posted in Programming)

Thanks a lot Mediator, I'll try it when I get home.  (Currently at school :\)

PS.  Are you still working on RSCN?  I heard you kind of disappeared tongue

34

(5 replies, posted in Programming)

Heres from my DB:
charname   varchar(15)      
picurl       varchar(255)
type               varchar(5)

I have a forms on my page with the names picurl, type, and charname.  Shouldn't that work?

Thanks in advance big_smile

35

(5 replies, posted in Programming)

I am trying to add some extra fields in my database, and have a form so users can input data on account creation.  I am getting the "Cannot create user" error.  I think it's a problem with the mySql query.

$db->query('INSERT INTO '.$db->prefix.'users (username, group_id, password, email, email_setting, save_pass, timezone, language, style, registered, registration_ip, last_visit, picurl, charname, type) VALUES(\''.$db->escape($username).'\', '.$intial_group_id.', \''.$password_hash.'\', \''.$email1.'\', '.$email_setting.', '.$save_pass.', '.$timezone.' , \''.$db->escape($language).'\', \''.$pun_config['o_default_style'].'\', '.$now.', \''.get_remote_address().'\', '.$now.'\', '.$picurl.'\', '.$charname.'\', '.$type.')') or error('Unable to create user', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'users (username, group_id, password, email, email_setting, save_pass, timezone, language, style, registered, registration_ip, last_visit, picurl, charname, type) VALUES(\''.$db->escape($username).'\', '.$intial_group_id.', \''.$password_hash.'\', \''.$email1.'\', '.$email_setting.', '.$save_pass.', '.$timezone.' , \''.$db->escape($language).'\', \''.$pun_config['o_default_style'].'\', '.$now.', \''.get_remote_address().'\', '.$now.'\', '.$picurl.'\', '.$charname.'\', '.$type.')') or error('Unable to create user', __FILE__, __LINE__, $db->error());

Any help would be GREATLY appreciated big_smile

I see.  I tried reinstalling the mySQL Database too, that didn't fix it.  Guess I'm stuck with phpbb sad 

Thanks for the reply though

I searched and couldn't find anything...  I would REALLY! appreciate it if someone could tell me how to fix it smile  The error occurs when i try to go to the admin panel, besides this, punbb is GREAT!