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.
★★★★★ 5 Star Rated Web Developer Course - check it out now!
inserting data into a DB using OOP php
1 reply to this topic
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 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users