Skip to content

Instantly share code, notes, and snippets.

View Van-peterson's full-sized avatar

Van Peterson Van-peterson

View GitHub Profile
@Van-peterson
Van-peterson / Menu given class
Created June 12, 2013 12:24
Menu given class
<ul class="menu">
<?php
// get a string with all li of the next html
$menu = "<li><a href="."'".$_path.$_SESSION['lang']."'".">".$home."</a></li>";
$sql = mysqli_query($connexion, "SELECT * FROM menu WHERE etat=1 ORDER BY position ASC");
$rel = 0;
if(mysqli_num_rows($sql)>0):
while($row = mysqli_fetch_object($sql)){