Welcome Guest, Not a member yet? Register   Sign In
redirect issue in my function
#4

Looking at your function, if no rows are returned from your query, the function just ends.

You should preface your foreach with a check to see that there is actually some data to deal with. The 'else' part of that if would then deal with the fact that the login code does not exist, ie redirect back to login or error page or return an error message. Hence the blank screen when you use the wrong credentials.
Reply


Messages In This Thread
redirect issue in my function - by doomie22 - 03-31-2016, 07:39 AM
RE: redirect issue in my function - by doomie22 - 03-31-2016, 08:08 AM
RE: redirect issue in my function - by PaulD - 03-31-2016, 09:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB