• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.