$newq=mysql_query("SELECT * from userrights WHERE UserId=$Id");

<select   name="page[]" multiple="multiple"   size="5" >
          <option disabled="disabled" value="">Choose one</option>
         $query1=mysql_query("SELECT * FROM adminmenu");
    $selected = ($menuid == $row1['MenuId'] ? 'selected="selected"' : ''); 
echo"<option value='$row1[MenuId]' $selected >".$row1['MenuName']."</option>";

What?? So what are we expected to do??

on update i want that admin can see the result on multi combo box and if user can acess two page or three page or more or less then admin can see can select and can edit
but this is all done but i have to do only this that if user have permession of the page on combox that page selected