PHP MySQL Javascript and css by Robin Nixon

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cvc505
Forum Newbie
Posts: 2
Joined: Wed Dec 04, 2013 4:46 pm

PHP MySQL Javascript and css by Robin Nixon

Post 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?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: PHP MySQL Javascript and css by Robin Nixon

Post 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.
cvc505
Forum Newbie
Posts: 2
Joined: Wed Dec 04, 2013 4:46 pm

Re: PHP MySQL Javascript and css by Robin Nixon

Post 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.
Post Reply