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

$r1=mysql_fetch_array($newq);
$menuid=$r1['MenuId'];
<select   name="page[]" multiple="multiple"   size="5" >
          <option disabled="disabled" value="">Choose one</option>
          <?php 
         $query1=mysql_query("SELECT * FROM adminmenu");
while($row1=mysql_fetch_array($query1)){
    $selected = ($menuid == $row1['MenuId'] ? 'selected="selected"' : ''); 
echo"<option value='$row1[MenuId]' $selected >".$row1['MenuName']."</option>";
}
?>
        </select>
2
Contributors
2
Replies
13
Views
3 Years
Discussion Span
Last Post by rjusman90
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.