Jump to content

Learning PHP OOP CRUD?


Recommended Posts

Hey sorry that I am asking this question, though I have gotten around to learn connecting to a database and also do the retrieve, yet I am not necessarily getting to learn doing INSERT, UPDATE and DELETE the proper way.


The tutorials available are often not best, I have found a good book ("Object Oriented Programming in PHP5") which teaches SELECT, yet not necessarily INSERT, UPDATE and DELETE.


I am really wondering how does one get to learn CRUD with PHP OOP, how did you people learn this? How can I learn INSERT, UPDATE and DELETE as well with PHP OOP?

I feel like paying for this on Elance or Fiverr. I am not sure how else to learn this by now, I have tried quite a bit, I have looked at scripts and tutorials and books. And it has just gotten as far as connecting to the database and doing the "fetching" ("SELECT", or also "retrieve").


Too bad that what is available is not necessarily best. Otherwise I would say one could understand the principle quickly and also pick up on a programming language quickly.


Please bear with me, I would appreciate suggestions.

Link to comment
Share on other sites

What do you mean by 'CRUD' with OOP? Do you mean using PDO? Or you mean learning how to do a CRUD on a DB AND learning OOP at the same time? 


If it's the last, you should probably break up the learning process. Search for PHP and OOP on Google. Then, search for PDO insert, PDO update, PDO select, etc. 


If it's the first, simply search for PDO insert, PDO update, etc.


I have some tutorials on my site about PDO (simple insert), but not on every CRUD parts.

Link to comment
Share on other sites

mogosselin, thanks for the response. I also meant using "pdo". Though, as of now, I am using "bindValue()" with this I can freely use SELECT, INSERT, UPDATE and DELETE. So I figured it out "till to this" on how to do this with OOP and prepared statements.

Edited by glassfish
Link to comment
Share on other sites

This thread is more than a year old. Are you sure you have something important to add to it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.