vendredi 30 juin 2017

How to incude file based on database value

I want to include a particular file from many based on user information.this is the piece of code, what am i getting wrong . This piece of code displays the database value of $name, and the values in the conditions are correct for the logged in user. this will eventually be improved with an elseif

if   


                        ( $_GET['department'] == CSS || ['level'] == 300 )



                        {
                        include "timetable/sict/css/300.php";    

                         }

else echo $name;

Aucun commentaire:

Enregistrer un commentaire