Tips and Tricks About Computers, Web Development, Linux, the Internet and the Like
Feather.php – Making form to database interactions easier
More often than not, when I’m doing form to database interactions, I use the same field names. This means there is some redundant information in my code, making my job more difficult. As such, I’ve started to create feather.php, a SQL statement constructor class that works off data sent by the $_POST or $_GET arrays.
It’s not ready for a public release as there are still some security issues to address (see TODO) but I wanted to get some thoughts, opinions and suggestions on this.
For those of you concerned about using the same field names as database columns, I plan to add associative arrays to allow you use different names.
i.e. something like this:
| Print article | This entry was posted by Tyler Mulligan on January 31, 2008 at 2:26 pm, and is filed under MySQL, PHP, Programming, Web Development. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |

about 2 years ago
Wow! this is brilliant! I was working on something like this but using dynamic variables. The code works but it’s pretty messy. Let me know when you publish a download version of your code.
Ciao from Rome Italy!