Skip to content
Advertisement

second condition not being met when condition is called [closed]

The below is the basics of my activation code, the user is sent a link when registering to activate. when they click the link it activates and functions as it should, if the token in the link does not match any in the database it should redirect with error message, this is the hangup it don’t redirect or even show the error message it just stays on a blank page.

I am really not sure what I missed I even tried a else if what am i missing

JavaScript

Advertisement

Answer

When $stmt return null results while block won’t be executed. Try this

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement