Chapter 3 - Extra Credit Code [Adding To Database]
I've been stuck on this for awhile now and hopefully someone can help. I've just got done reading this chapter and did the code.. after a few error, I got it to work.. now I don't know how to start to re-code this example to accept new data to write to the database. Can anyone give me some helpful starting points?
For Instance how do you build a new Individual? the class the way it is coded only excepts id's so it will build from the database.. but how do you add a new record? since you can simply add
$test new individual; // with out calling a id number for it to get it's information from??
|