Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

> Multiple Drop Down Menu PHP, need help

views
     
JusticeDeserves
post Apr 18 2010, 11:09 AM

Regular
******
Senior Member
1,913 posts

Joined: Aug 2009


CODE
<?php
$sql = 'SELECT * FROM pages';
$result = mysql_query($sql);
?>

<ul>
 <li><a href="index.php">Home</a></li>
<?php
while($row = mysql_fetch_array($result) {
  echo '<li>'.$row['page_name'].'</li>';
}
?>
</ul>


Something like that? Just style it up so it acts like a dropdown. smile.gif

 

Change to:
| Lo-Fi Version
0.0208sec    0.53    6 queries    GZIP Disabled
Time is now: 1st March 2021 - 11:21 PM