PHP gevorderde |
|
<tr>
<td width="20%">Style</td>
<td><select name="style">
<?
$sql = mysql_query("Select * From ga_styles Order By name");
while($style = mysql_fetch_assoc($sql))
{
echo '<option value="'.$style['id'].'">'.$style['name'].'</option>';
}
?>
</select></td>
</tr>
<tr>
<td valign="top" rowspan="2">News Watch</td>
<td><input type="radio" name="YesNo" value="1" />: Yes</td>
</tr>
<tr>
<td><input type="radio" name="YesNo" value="0" />: No</td>
</tr>
<tr> <td width="20%">Style</td> <td><select name="style"> <? $sql = mysql_query("Select * From ga_styles Order By name"); { echo '<option value="'.$style['id'].'">'.$style['name'].'</option>'; } ?> </select></td> </tr> <tr> <td valign="top" rowspan="2">News Watch</td> <td><input type="radio" name="YesNo" value="1" />: Yes</td> </tr> <tr> <td><input type="radio" name="YesNo" value="0" />: No</td> </tr>
Dit is het deel waar het zou moeten op uitgevoerd worden.
Hoe kan ik iets uit de database nemen en zorgen dat de specifieke Radio button + de juiste option is geselecteerd??
Dank met voorbaat
|