fati_kom — 2012-09-25T10:46:19-04:00 — #1
I have been following the book of sitepoint php and mysql novice to ninja , implementing all examples , everything was running smooth, until chapter 7, final topic managing jokes , where the author states that the database example in the chapter CMS was not designed to support add jokes and delete jokes operation. What is bugging me is, why is it not suitable for these operations, it seems normalized with no database anomalies.
Any help and reply would be much appreciated
guido2004 — 2012-09-25T11:34:28-04:00 — #2
No idea. I don't have the book with me, so I can't check it. But doesn't the author explain why it doesn't support adding and deleting jokes? Or continue with the modifications to the DB so it does support adding and deleting? Or maybe he wasn't talking about the DB design, but about the PHP code?
fati_kom — 2012-09-25T19:23:36-04:00 — #3
Thanks for the help :), once you confirmed there is nothing wrong with the database, I skimmed through the later chapters to find the answer...The author was talking about website security in general , as its not secure to allow just anybody to delete and add jokes to your database without an authorization mechanism
ayonkhan — 2012-09-25T21:57:05-04:00 — #4
Because now your database has a junction table (lookup table) named "Jokecategories". And he wasn't talking about the CMS you created in chapter 7. The add and delete options of your CMS should work just fine. He was talking about the code archive, where he added a folder named "joke" (chapter7) and removed those two features from the joke list page. Because it's the same joke list page that he created in chapter 4 (and modified a little in chapter 5 and 6).
fati_kom — 2012-09-27T22:37:47-04:00 — #5
Thanks for Clarification , and also for the link
mittineague — 2014-09-18T22:22:14-04:00 — #6
This topic is now archived. It is frozen and cannot be changed in any way.