Hello, I haven't ran your code. However, I quickly saw that you have used single equals sign in your if statement:
if(($user_type = "user") && ($is_verified = "1")) {
What you should do is use double equals to create an 'is equal to' condition. For example:
if($user_type == 'user' && $is_verified == 1) {
Hey,
Looking to find a solution to something. I have been experimenting making a template engine for a website I am building. How can I search a variable for all occurrences of {VARIABLE} eg. {Username} {Title} {Content} so I can str_replace them.
Thank you
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.