Handling non exsisting record mysql - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12) +--- Thread: Handling non exsisting record mysql (/showthread.php?tid=67658) |
Handling non exsisting record mysql - Marcel - 03-21-2017 Hi all Ive done this code to handle a query that could give nothing if record dosnt exsist. Code: function get_user_data() Is this good practice ?. this prevents me from doing a test in my view before displaying the data. thanks for the advice |