Jump to content

PHPTOM

Members
  • Posts

    84
  • Joined

  • Last visited

Everything posted by PHPTOM

  1. When you mysql_connect did you give it the variable of $con? Or as long as it isn't a persistant connection you could just remove that line.
  2. 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) {
  3. 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
×
×
  • Create New...

Important Information

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.