PHP if Statement
In the database, I have a column labeled usergroup. In my PHP page, I want to display users with ONLY 4 usergroups (based on the number that is in the database for that user.)
My question is - and I am drawing a blank - how do you define the variable to use in the if statement?
Is this what you are looking for.....
SELECT * FROM table WHERE usergroup = 4
Please supply the code that you have tried, it is better to learn from your mistakes :)
Originally Posted by boboreo
Please also note:
>>> In the database, I have a column labeled usergroup.
Columns can only exist in database tables.