Jump to content


inserting data into a DB using OOP php

  • Please log in to reply
1 reply to this topic

#1 ckbis1


    New member

  • New Members
  • 4 posts

Posted 05 April 2012 - 04:29 AM

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.

  • 0

#2 Ben



  • Administrators
  • 5,682 posts
  • LocationGainesville, Florida

Posted 05 April 2012 - 10:41 AM

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.
  • 0
Benjamin Falk
Falken Creative : Twitter

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

★★★★★ 5 Star Rated Web Developer Course - check it out now!