s4salman Posted March 8, 2009 Share Posted March 8, 2009 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 More sharing options...
dadamssg Posted March 8, 2009 Share Posted March 8, 2009 im not sure, but i think thats done with AJAX...might wanna look into that Link to comment https://forums.phpfreaks.com/topic/148494-vertical-drop-down-menu-in-php/#findComment-779804 Share on other sites More sharing options...
s4salman Posted March 9, 2009 Author Share Posted March 9, 2009 I read about AJAX , but could not got a solution to this. Link to comment https://forums.phpfreaks.com/topic/148494-vertical-drop-down-menu-in-php/#findComment-780113 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.