Site Cloner PHP Script
Bargain Hunter PHP Script
Job Hunter PHP Script
Site Login and Access Control PHP Script

With PHP, you make not equal to command with !- .

With a mysql query, you use <> in a query to make a condition where not equal to.

Here is an example to make page links with specified urls. Since You want home page on the top, you make 2 queries so that it does this, while making the other pages in alphabetical order.

<ul style=”list-style-type:none; padding: 0px 10px 0px 10px;”>
<?php
$command = “SELECT title, url FROM table where url=’index.php’ ;”;
$result = mysqli_query($db, $command);
while ($data = mysqli_fetch_assoc($result)) {
// echo stripslashes($data->sidebar);
//echo “<ul style=\”list-style-type:none;\”>”;
echo “<li style=\”margin-left:0px;\”><a href=\””.$data[‘url’].”\”>”.$data[‘title’].”</li></a>”;
//echo “</ul>”;
}

$command = “SELECT title, url FROM table WHERE url<>’index.php’ order by title asc;”;
$result = mysqli_query($db, $command);
while ($data = mysqli_fetch_assoc($result)) {
// echo stripslashes($data->sidebar);
//echo “<ul style=\”list-style-type:none;\”>”;
echo “<li style=\”margin-left:0px;\”><a href=\””.$data[‘url’].”\”>”.$data[‘title’].”</li></a>”;
//echo “</ul>”;
}
?>
</ul>