MyBB Community Forums

Full Version: need help with custom code in acp
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
how can I convert this code so I can use it in the acp?
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."custom_links");
    if($db->num_rows($query) > "0")
    {
        while($links = $db->fetch_array($query))
        {
            $select .= "<option value=\"".$links['clid']."\">".$links['name']."</option>";
        }
    }
    else
    {
        $select .= "<option value=\"0\">&nbsp;&nbsp; None available &nbsp;&nbsp;</option>";
    }
nevermind, I've searched through a file that did the same thing.
Whenever you solve your own problem, its helpfull if you post the solution for people who ask the same question in the future.