Skundbad it is debuged, I debuged it for a while but still showing up the problem. I will show some more detail so you guys can see more details.
after line 76 the fallowing bit of code
PHP Code:
if ($rmenu["id"] == $sel_menu) {
I am trying to place or arrange the bit of code below this paragraph, so it can open the subject and hold on to its submenus and avoid to close the submenus once the users click on a submenu. The problem is that when a user open or click on a subject it opens it's submenus but once users click on a submenu it closes everything and it return to show the subject only closing all the submenus below the subject. If users want to open another submenu other than the one opened again, the users have to click on the subject again to choose another submenu instead of leaving all of the submenus visible and available to the users regardless users clicking on a submenu or not. Is there a format or coding it could be arranged for that? The way it is arranged now, the subject always closes its submenus once a submenu is click on instead of leaving all the submenus visible whether it is clicked on or not.
PHP Code:
echo "<ul class=\"submenu2\">";
while($rmenu = mysql_fetch_array($regularshoe_set)){
echo "<li";
if ($rmenu["id"] == $sel_shoe) {
echo " class=\"selected\"";
}
echo "><a href=\"shoe1.php?menu=" . urlencode($rmenu["id"]) ."\";>{$rmenu["shoename"]}</a></li>"; }
echo "</ul>";
decowski this is the rest of the code before the while loop and what the curly braces below closes is the If statement after the mysql_query, Thank you for the help.
PHP Code:
$regularshoe_set = mysql_query($query, $connection);
if(!$regularshoe_set){
die("Database query failed:" . mysql_error());}
if ($shoesubject["id"] == $sel_shoe['id']) {
while($rmenu = mysql_fetch_array($regularshoe_set)) {
echo "<li";
if ($rmenu["id"] == $sel_shoe) {
echo " class=\"selected\"";
}
echo "><a href=\"shoe1.php?menu=" . urlencode($rmenu["id"]) ."\";>{$rmenu["shoename"]}</a></li>";
}
} //That carly brace is closing the first If then statement at the top of the code.
if ($rmenu["id"] == $sel_menu) { // this is
line 76
Bookmarks