boboreo — 2012-08-18T10:54:45-04:00 — #1
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?
scout1idf — 2012-08-18T12:15:09-04:00 — #2
Is this what you are looking for.....
SELECT * FROM table WHERE usergroup = 4
john_betong — 2012-08-18T22:58:45-04:00 — #3
Please supply the code that you have tried, it is better to learn from your mistakes
Please also note:
>>> In the database, I have a column labeled usergroup.
Columns can only exist in database tables.