Killersites Community: inserting data into a DB using OOP php - Killersites Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

inserting data into a DB using OOP php

#1 User is offline   ckbis1 

  • View blog
  • Group: New Members
  • Posts: 4
  • Joined: 05-April 12

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 User is offline   Ben 

  • View blog
  • Group: Administrators
  • Posts: 5,412
  • Joined: 19-December 08
  • 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.
Benjamin Falk | Falken Creative : Twitter : KillerSites Screencast Blog
Skills: Photoshop, Illustrator, HTML, CSS, jQuery, PHP and CodeIgniter
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users