Welcome Guest, Not a member yet? Register   Sign In
Best practice on database functions
#1

[eluser]mjstenbe[/eluser]
Im new to CI and am implementing my first DB app. Im using Jquery and Ajax post to save data from Website to DB. Im puzzled how to test whether the db operation went throuh ok. Is there a return value TRUE/FALSE that I can check or so? With select I can count num_rows, but with insert or delete this is not the case?


I understood that the values inserted are escaped automatically? Should I still use xss_clean function to be secure?




Thanks,
Mika




Theme © iAndrew 2016 - Forum software by © MyBB