2005-10-10, 08:18 PM
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\"> None available </option>";
}