Re: Custom function for inserting values into MySQL

From: Date: Wed, 04 Nov 2009 16:07:04 +0000
Subject: Re: Custom function for inserting values into MySQL
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-299619@lists.php.net to get a copy of this message
Shawn McKenzie wrote:
Allen McCabe wrote:
Do you see any major hangups or screwups on first glance? And is my fear of trying this out on my database unfounded? Does this even seem that useful?
in all honesty.. loads of screwups - don't try it out on your database & ultimately if it isn't re-usable then it isn't useful (and it's isn't re-usable unless every single table you have is the same.. which they aren't) to be a bit more constructive though.. this is a road most developers have been down, and well known solutions already exist. You've got two choices.. 1] continue down this route and learn as you go (but for god sake get a test database) - recommended if you really want to learn not just PHP but programming in general; once you understand it all you can go looking at design patterns, common solutions and how other people do it and have enough knowledge to make informed decisions. 2] just use what's made and don't think too much about it, you'll be productive and can throw in support/help requests whenever it goes wrong, works for some people.. to do this get a decent framework and read it's manual (or use pdo, or an ORM for PHP or something) all depends on what you want, how much time you have, and where you want to end up.

« previous php.general (#299619) next »