Stu'pid qu"toesJanuary 6th, 2009, 7:07 pm
Tags: mysql php
GrrrUMBLE. I think I've finally sorted out the issues with user input fields containing single- and double-quotes. Ya see, PHP uses those to denote the start/end of strings, and HTML forms use them to delimit all sorts of stuff, so if someone (re: you, gentle reader) comments with a name like, oh, I dunno, 'fi"sh', then everything goes kerfluey if my code doesn't handle it properly.
Thankfully PHP has boatloads of built in functionality to deal with this; I just had to make it work with my editing stuff.