PHP (CRUD)

Coding Critique is the place to post source code for peer review by other members of DevNetwork. Any kind of code can be posted. Code posted does not have to be limited to PHP. All members are invited to contribute constructive criticism with the goal of improving the code. Posted code should include some background information about it and what areas you specifically would like help with.

Popular code excerpts may be moved to "Code Snippets" by the moderators.

Moderator: General Moderators

Post Reply
amandurrani
Forum Newbie
Posts: 2
Joined: Thu Aug 12, 2010 1:15 am

PHP (CRUD)

Post by amandurrani »

i was in office doing nothing thought to do something so i had created a "Code Cutter Class"
i really helps me alot while programming with PHP it decreases my code and removes repetaion of code
I ur using and PHP Framework than u dnt need this class But IF ur doing simple PHP than must implement this Class
This is a handy tool for Rapid development
Regards : Aman Durrani


Hey Guys Good Newz
I had done few changes in code class newer version of class is available now
It Contains JOIN query along with method overloading
Attachments
CRUDClassWithExample.rar
(4.48 KiB) Downloaded 481 times
Last edited by amandurrani on Sun Aug 15, 2010 5:30 am, edited 1 time in total.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: PHP (CRUD)

Post by Christopher »

Moved to Code Critique. If the code is found to be of high quality then is can be made available in Code Snippets.
(#10850)
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: PHP (CRUD)

Post by josh »

Heh so what happens if I want a JOIN but not an inner join? Also this is a database adapter class, you should name things appropriately. Technically its a database adapter, intended for use in your personal CRUD system (which is not layered). I'd recommend working with some real frameworks. I have a hunch you're trying to build something you don't fully comprehend (and I say that with all the respect possible). By layered I mean you shouldn't have HTML & PHP code all mixed in the same file like this.
Post Reply