Hi,
I'm Having a Problem with populating a combo box with more than one result from a query.
until this stage i have managed to get the first Row Curso_name,but i still find difficulty in displaying the second row and also adding a "-"between both the rows.
Thank You!
<?php
include("connection.php");
$sql ="SELECT curso_name,curso_periodo FROM curso";
$query = mysql_query($sql);
echo '<select name="primeira_opcao">';
while ($row = mysql_fetch_array($query)) {
while ($row = mysql_fetch_array($query)) {
echo '<option value="',$row['curso_name'],'">',$row['curso_name'],'</option>';
}
echo '</select>';
?>