Jump to content


Photo

inserting data into a DB using OOP php


  • Please log in to reply
1 reply to this topic

#1 ckbis1

ckbis1

    New member

  • New Members
  • 4 posts

Posted 05 April 2012 - 04:29 AM

Hi
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.

thanx
chris
  • 0

#2 Ben

Ben

    Administrator

  • Administrators
  • 5,638 posts
  • LocationChico, CA

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