PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Fri Nov 15, 2019 11:40 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: PHP (CRUD)
PostPosted: Thu Aug 12, 2010 1:32 am 
Offline
Forum Newbie

Joined: Thu Aug 12, 2010 1:15 am
Posts: 2
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 232 times


Last edited by amandurrani on Sun Aug 15, 2010 5:30 am, edited 1 time in total.
Top
 Profile  
 
 Post subject: Re: PHP (CRUD)
PostPosted: Thu Aug 12, 2010 1:46 pm 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13592
Location: New York, NY, US
Moved to Code Critique. If the code is found to be of high quality then is can be made available in Code Snippets.

_________________
(#10850)


Top
 Profile  
 
 Post subject: Re: PHP (CRUD)
PostPosted: Sat Aug 21, 2010 12:00 pm 
Offline
DevNet Master

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group