Hi there
I'm building this CMS, and at a point i have
3 similar drop downs. The values of the drop
downs are called from a MysqlDB.
The first one is just fine:
do{
$selected = ($_GET['id_1'] == $result['id']) ? ' selected' : '';
echo '<option'.$selected.'>'.$result['id'].'</option>';
}while($result = mysql_fetch_array($query));
If the value of $_GET['id_1'] matches a value from the DB,
that value is selected in the final dropdown.
But when i try to do it again with $_GET[id_2] or $_GET[id_3], it
fails.
How can i 'recall' the mysql info?
Thanks.
Frizzle.