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>

Use code tags, don't write the question in the title, be a bit more clear about what you want and what part doesn't work.
There's a { on line 6 that doesn't belong there.

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.