Jump to content

vertical drop down menu in php


s4salman

Recommended Posts

Hello

 

i am using this code to print different babes wallpapers links :

 

<?php       

$query="SELECT * FROM cattable ORDER by catname";
$result=mysql_query($query);

$num=mysql_numrows($result);



echo "<b><center>Wallpapers</center></b><br>";

$i=0;
while ($i < $num) {

$catname=mysql_result($result,$i,"catname");

$caturl=mysql_result($result,$i,"caturl");


echo "<b><a href=\"$caturl-wallpapers\" class=\"classb\">$catname</a></b><br>";

$i++;
}

?>

 

But what i now want is to put them in a Main item called "Babes Wallpapers" in such a way that when we click "Babes Wallpapers" , a sub menu open up with list of celebrities wallpapers as i am currently displaying using the above php code.

 

For your nderstanding, visit wallpaperstock.net, and in the category colum on the right side of the page, click Hot Babes/ Girls link, and you will find that a long list dropped down.

I want the same thing. Can any body tell me how can i do this.

Link to comment
https://forums.phpfreaks.com/topic/148494-vertical-drop-down-menu-in-php/
Share on other sites

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.