Jump to content

I want to make vertical drop down menu


linux1880

Recommended Posts

try  this  ....i  am copying  my code.. you can  cut and define urs

 

 

<select name="cmbbook" id="cmbbook" select onchange="showBook(this.value);">

   

    <?php

 

    include('connect.php');

 

    $Tb = "book_master";

 

    mysql_select_db($Db, $link);

                           

    $query = "select book_id from $Tb order by book_id";

 

    $result= mysql_query($query,$link);

 

    $fel=mysql_num_fields($result);

    $nro=mysql_num_rows($result);

 

    if ($nro>0)

 

    {

   

        //echo "<select Member='itemmem'>\n";

       

        echo "<option>-- Select Book --</option>\n";   

       

    while ($row=mysql_fetch_array($result))

 

        {

   

            echo "<option value='$row[book_id]'>$row[book_id]</option>\n";

       

           

           

        }                       

                             

    }

 

   

    mysql_close($link);

 

  ?>

    </select>    </td>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.