[Solved] Php if session declare variable


I am not clear about question. as far as i understood check the below code

 <?php
   session_start(); // this is the first thing to do

   if(isset($_SESSION['admin_level'])){
        $_SESSION['admin_level']=10; //Set admin level if not available
    }

   $var=($_SESSION['admin_level']==10)?"newclient":"oldclient";


   $qry="SELECT * FROM client where client_status="".$var.""";

4

solved Php if session declare variable