Mysql
Escaping field and table names in PDO statements
PDO is Chuck Norris (or whomever you believe in as the divine force that created earth) gift to PHP developers. It takes the hassle of securing your sql queries against sql injections and other nasty stuff.
But it has one weakness. It has no method of escaping table and field names. So how do we do it? The only solution I see is to quote table names (or field names) with backquote (`) and then disallow backslash, backquote and the nul character:
Mysql: change column order
The order of columns is usually not important, but sometimes it annoys me. So, how to change it?
