hello
i have an attribute in 'users' table called RegNo which refer ro region number ...
so i have to select users and display them according to their region number .
here is my code
<body>
<ul id="nav">
<li class="heb"> <a href="parentUrl" >hebron</a>
<li class="bet"> <a href="parentUrl" >ramallah</a>
<?php
include ("config.php");
$query="select * from users";
$returnValue=mysql_query($query,$connect);
if (!$returnValue)
die ("error");
else
{
while($row=mysql_fetch_array($returnValue)){
if ($row['RegNo']==100){
echo '<ul class="heb">
<li><a href="childAUrl" >'.$row['username'].'</a></li>
</ul>
';
}
}
}
?>
</li>
</li>
</ul>
so if the RegNo=100 , username must be displayed under 'hebron' city...
how i can solve this problem ?!