View Single Post
  #1  
Old 02-11-2017, 11:36 AM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 114,242
Abronsyth is on a distinguished road
Default Help with Dropdown list

Alrighty, so I am attempting to put together a dropdown list that will display a user's pets that are "no" for use alternates and level 4...I'm having issues with it.

I am just getting a blank drop-down list. Right now I'm just trying to list all of the user's pets.

Here's the code I'm attempting....

PHP Code:
$stmt $mysidia->db->select("owned_adoptables", array("name"), "owner = '{$mysidia->input->get("user")}'");
$name $stmt->fetchColumn();
$formExample = new Form("exampleform""page_to_send_to_here""post");
$exampleDropdown = new DropdownList("solarList");
$exampleDropdown->add(new Option("{$name}""{$name}"));
$formExample->add($exampleDropdown);
$formExample->add(new Button("Click Me""submit""submit"));
$document->add($formExample); 
This is my first time trying to work with dropdown lists in Mysidia, so I am very lost. If anyone could help I'd really appreciate it.
__________________
My Mods Site (1.3.4, 2020 Mods)

Last edited by Abronsyth; 02-11-2017 at 11:49 AM.
Reply With Quote