for ($rows = 0; $rows < $totrow; $rows++)
{
echo "<tr>";
{
echo "<td width=7% align=center bgcolor=#D4BFFF >" .$sr;
echo "</td>";
?>
<td width=40%>
<select name="book<?php echo $sr;?>" style="width:80%">
<option value="-1">-----Select Book-----</option>
<?php
$qr_title=mysql_query("select * from book where Dels='N' order by Bk_nm asc");
while($row_title=mysql_fetch_array($qr_title))
{
?><option value="<?php echo $row_title['Bk_id'];?>"<?php if($row_title['Bk_id']==$ad) echo "selected"; ?>><?php echo $row_title['Bk_nm'];?></option><?php
}
?>
</select>
kiran33 0 Newbie Poster
twiss 155 Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.