I need help. I got it to do what I wanted but it only gets the first catid it comes across instead of all of them.
PHP Code:
$getcats = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "custom_links_cat");
while($cat = $db->fetch_array($getcats))
{
$getdroplinks = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "custom_droplinks WHERE catid='$cat[catid]' ");
while($dlink = $db->fetch_array($getdroplinks))
{
$custom_droplinks .= "<tr><td class='thead'>".$cat['title']."</td></tr>
<tr><td class='vbmenu_option'>$img<a href='".$dlink['url']."' target='$new' title='".$dlink['alt']."'>".$dlink['name']."</a></td></tr>";
eval('$custom_droplinks = "' . fetch_template('custom_droplinks') . '";');
}
}