Page 1 of 1

PHP MySQL Javascript and css by Robin Nixon

Posted: Wed Dec 04, 2013 4:55 pm
by cvc505
I have just finished reading Robin Nixon's book on PHP, MySQL Javascript and CSS and am working through the rudimentary social network site demonstrated in the last chapter. The program is supposed to prompt for login or registration and check to see if a table exists in a data base. If the table isn't there is is supposed to create it. However, My installation does not seem to ever call the function to create the table.

I am working out of the 2nd edition. Does anybody know of an errata for this program or if the program as downloaded from the site will work properly?

Re: PHP MySQL Javascript and css by Robin Nixon

Posted: Wed Dec 04, 2013 6:16 pm
by requinix
That whole thing of creating the table if it doesn't exist is very bad design. Please don't actually do it once you start venturing off into your own development work.

I'm too lazy to Google for the book or its errata, but if you post the relevant files I bet we could figure it out pretty easily.

Re: PHP MySQL Javascript and css by Robin Nixon

Posted: Wed Dec 04, 2013 7:00 pm
by cvc505
Thanks, I don't plan to have my program create tables, I will handle that differently, I just want to make sure the sample program works before I use some of the ideas put forth. It looks to like the create table function is not being called. I will have to go through the code in the book and compare it to the code that was down loaded.
I did a search for the errata but did not find anything.