index.php    
   

=========================
// if user is know, then welcome









    

================================
// style drop down box 
$allstyles=$DB_site->query("SELECT style.title, user.styleid, COUNT(*) AS count FROM user LEFT JOIN style USING (styleid) WHERE style.styleid IS NOT NULL GROUP BY user.styleid");
$dropdownbits='';
while ($thisstyle=$DB_site->fetch_array($allstyles)) {
  if ($styleid==$thisstyle[styleid]) {
    $stylesel='selected';
  } else {
    $stylesel='';
  }
  eval("\$dropdownbits .= \"".gettemplate('forumhome_dropdownbit')."\";");
}
// style drop down box 








forumhome_dropdownbit      
   
==========================================================================
<option value="$thisstyle[styleid]" $stylesel>$thisstyle[title] (      $thisstyle[count])</option>







forumhome     

         
========================================================================================
<select name="styleid" onchange="window.location=('index.php?s=$session[sessionhash]&styleid='+this.options[this.selectedIndex].value)">
$dropdownbits
</select>







=========================
 
=========================