extend error - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: extend error (/showthread.php?tid=15723) |
extend error - El Forum - 02-12-2009 [eluser]Mitja B.[/eluser] Hi, i have one small problem now i get error like this Code: A Database Error Occurred How can i extend erro that i will get just message Data too long for column 'naslov_podjetja' and nothing else or some other error wihout code Thx extend error - El Forum - 02-12-2009 [eluser]TheFuzzy0ne[/eluser] Sounds like the column might be a varchar that's not long enough to store the data you're trying to store. You should check that through phpMyAdmin or equivalent, and also see how long the data you're trying to add is. There should ideally be some kind of validation before the insert procedure to ensure someone hasn't entered more data than the database column has space for. extend error - El Forum - 02-12-2009 [eluser]Mitja B.[/eluser] Thx for your answer. Yes maxlength is 80 and i have that maxlength must be no more than 80. Problem is that i use htmlspecialchars validation and if i use <a extend error - El Forum - 02-12-2009 [eluser]TheFuzzy0ne[/eluser] If you're using CodeIgniter's form validation library, you might want to try having the length check after all of your prep functions. |