|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
Persistable Tutorial
I was studying the Tutorial on Persistent sp Functions/classes
I was trying to cookie cutter a code to manage a database and can not grasp the syntax. What has to be altered for say a TableName 'Books' BookName 'Hunting' Author 'Russell James' ? I have another example on my config.php $books_table = "books"; but how to define 'Persistent'? is muddling me up after 6 hrs. <PHP> $newBook = new Book; $newBook->title = $_POST['title']; $newBook->PersistNew(); $newAuthor = new Author; $newAuthor->firstname = $_POST['firstname']; $newAuthor->lastname = $_POST['lastname']; $newAuthor->PersistNew(); $newBookAuthorLink = new BookAuthorLink; $newBookAuthorLink->author = $newAuthor->id; $newBookAuthorLink->book = $newBook->id; $newBookAuthorLink->PersistNew(); </php> |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > Persistable Tutorial |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|