Torkuda, on 26 December 2012 - 08:52 PM, said:
Is anyone clear on how the chapter 10 examples are supposed to work? Are they supposed to be combined and reworked to fit the database you have?
Yes, yes they are.
There will be a slight difficulty using them out of the box because the publications.sql file will not be in the same folder, so move it to the same folder as the example. Also make sure the password and username in the login file are correct. Right now, as I read through the folder, it is indeed looking for you to combine the different pieces of code, as they actually can't function at all separately.
A quick way to get feed back once you hit example 10-4 is to type this:
if(result) echo "hellow classics";
Without this line, example four, even when properly combine with the other code examples, will display something only if there is an error. With this line, the echo will display if you coded everything correctly.