hello im a new member here at PHPBuilder...i have read many topics because it helped me alot...just want to need help or advices for my problem...
here is the scenario :
- admin
- user
- if admin logs in, items in a list box shows all
- if user logs in and if the user is one in the list, his/her name WILL ONLY SHOW and selected
here's the working listbox/dropdown i've used for admin...
$content.="<td><select name='aDMIN' onChange='this.form.submit();'>";
$userRs = mysql_query("SELECT * FROM table');
while ($user_row = mysql_fetch_object($userRs)){
$evalid = $user_row->id;
if ($user_row->lastName){
if ($user_row->middleName){$middleName=$user_row->middleName;}
$fullName = ucfirst($user_row->lastName).", ".ucfirst($user_row->firstName)." ".ucfirst($middleName);
if ($evaluator == $user_row->id){$content.="<option value='$user_row->id' selected> $fullName </option>";}
else $content.="<option value='$user_row->id'> $fullName </option>";
i want for the user....if someone can help....