The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
UPDATED - costum editCP - print_input_row appears empty with images.
Trying to get a Edit box to function..
Attachment 94000 It shows up fine, but it always show up empty.. Attachment 94001 Code:
print_cp_header("Edit code"); $code=$db->query("SELECT * FROM " . TABLE_PREFIX . "vbinvitationcode WHERE codedbID='".$_GET['id']."'"); <input type='hidden' name='codedbID' value='".$code['codedbID']."'>"; print_form_header('Edit', 'goeditsave'); print_table_header("Edit invitation code"); print_input_row("Invitation Code", 'InvitationCODE', $code['InvitationCODE']); print_input_row("Put user in Group ID", 'NewusergroupID', $code['NewusergroupID']); print_submit_row("Save changes", 0); print_cp_footer(); } all works and i get the form, but its empty, fields are empty.. any ideas why nothing shows ? EDIT : added images, for ilustation |
#2
|
||||
|
||||
Always clean your variables... Your query will return a result object, not an array as you expect it, use this:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|