help me to set value in drop down .I want to fetch two ids 1.$row[0].
2.$row[3] from a view and selected is not set.
<td colspan='2'><b>Select a Publication and Year</b><br>
<select name="publication_name" id="publication_name" onchange="show_year(this.value);">
<?php
$get_publn_name=mysql_query("SELECT anPublicationId,sPublicationName,sPublicationShortName,anYearId,nPublicationYear FROM view_publication_year order by nPublicationYear");
?>
<option value=0>-- Select Publication --</option>
<?php
while($row=mysql_fetch_row($get_publn_name))
{
if(isset($_GET["id"]) and $_GET["id"]==$row[0])
{
echo "<option value=".$row[0].",".$row[3]." selected=true>".$row[1]."-".$row[4]."</option>";
}
else
echo "<option value=".$row[0].",".$row[3].">".$row[1]."-".$row[4]."</option>";
}
?>
</select>
</td>