lie2815 try this. im not sure what it does. and im trying to learn sql functions within punbb!
i was looking at my custom page menu seeing how it just pulls the name with a hyperlink.
Q
<?php
$result = $db->query('SELECT t.name, m.name AS metalname FROM '.$db->prefix.'metaltypes AS t INNER JOIN '.$db->prefix.'metals AS m ON m.id=t.metal_id WHERE t.id='.$id) or error('Unable to fetch metal type info', __FILE__, __LINE__, $db->error());
if ($db->num_rows($result))
{
?>
<div class="block">
<h2 class="block2">Custom Menu</h2>
<div class="box">
<div class="inbox">
<ul>
<?php
while($name = $db->fetch_assoc($result))
echo "\t\t\t\t\t".'<li>'."\n\t\t\t\t\t\t".$name['metalname']."-".$name['name'].'</li>'."\n\t\t\t\t\t"."\n";
?>
</ul>
</div>
</div>
</div>
<?php
}
?>
My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!