View Single Post
  #9  
Old 10-16-2017, 04:27 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 112,545
Abronsyth is on a distinguished road
Default

Thank you!!

So knowing how it saves in the database I think I can fix the drop-down selection problem.

What needs to be done is modify the first (aka default) option to reflect what the user has listed in the database. It'll look sort of like this I think:
HTML Code:
<option selected>{$selectedbase}</option> 
<option>black</option>
<option>brown</option>
<option>...and so on...</option>
First we'd need to define $selected, which is easy enough;
PHP Code:
$selectedbase $mysidia->db->select("custom", array("base"), "uid='{$mysidia->user->uid}'")->fetchColumn(); 
I haven't tested it at all yet, haha, but I do think that it'd work along those lines!

And thank you again, Dinocanid!!!
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote