Jump to content
Killersites Community
  • Announcements

    • administrator

      New Forum is Live!   10/18/2017

      Welcome to the rebirth of the KillerSites community! Much to come as we clean house and get the new sections in place. Stef  

inserting data into a DB using OOP php

Recommended Posts


I have managed to connect to my DB using OOP php classes and what not and can view my DB, but now i am struggling to insert data from my form into my database, and I am lost with how to code it. Any help or direction would be much appreciated.




Share this post

Link to post
Share on other sites

Are you using an MVC approach, splitting your files into models, views and controllers? If so, you should have models representing your data, and you should have methods within your objects that will handle the insertion of data.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now