O'Reilly Forums: Chapter 10 Examples Combine? - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Chapter 10 Examples Combine?

#1 User is offline   Torkuda 

  • New Member
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 23-November 12

Posted 26 December 2012 - 08:52 PM

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?
0

#2 User is offline   Torkuda 

  • New Member
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 23-November 12

Posted 26 December 2012 - 09:06 PM

View PostTorkuda, 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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users