Code:
$chan = mysql_query("SELECT * FROM channels ORDER BY chan ASC", $connection);
while ($list = mysql_fetch_array($chan))
{
$var1 = $list['chan1'];
}
$templater-register('var1', $var1);
<vb:each from="list" value="chan">
<td><select name="cGID" size="1"><option value="{vb:raw list.chan}">{vb:raw list.chan}</option></select></td>
</vb:each>
Not sure if i'm doing it right.I want it to list everything that's in that array in the drop down menu