Welcome Guest, Not a member yet? Register   Sign In
error creating in my controller
#2

You didn't actually say where the error is, but looking at the source, you are not validating that username actually exists in session, so $regno could evaluate to 'false' and potentially as result that creates invalid SQL query.

where_in for example is painful method in that sense, it accepts empty array, but then creates "field IN ()" which throws SQL error.
Reply


Messages In This Thread
error creating in my controller - by kvanaraj - 09-19-2018, 12:13 AM
RE: error creating in my controller - by Pertti - 09-19-2018, 01:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB