i am not sure i fully understand what you want but here is my take on it
i read that u want a drop down box like the one superjadex12 suggested. but on top of that you would like the dates that have new users to be highlighted.
to highlight in a drop down box you want to assign a class to the items you want highlighted.
so a highlighted row looks like this.
Code:
echo '<option value="'.$u[Date].'" class="highlight">'.$u[Date].'</option>';
with css to go along with it
Code:
<head>
<style type="text/css">
<!--
.highlight {
color: #0000ff ;
background-color: #f00 ;
-->
</style>
</head>
a line that you dont want highlighted will look like this
Code:
echo '<option value="'.$u[Date].'">'.$u[Date].'</option>';
when you do your query, you will have to find out which groups have new users to approve (i assume that means your 'approved field = 0') and for each of those groups you will output the highlight code.
I dont have time to do up a query for it but it the logic for the drop down will be somthing like..
Code:
echo '<select name="date">';
while($u = mysql_fetch_array($users))
{
if($newUsers>0)
echo '<option value="'.$u[Date].'" class="highlight">'.$u[Date].'</option>';
else
echo '<option value="'.$u[Date].'">'.$u[Date].'</option>';
}
echo '</select>';
hope that made some sense. i didnt test any of the code so there may be errors in there but i think that might help u get to where u want to be
Bookmarks