Wrox Programmer Forums
|
BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5
This is the forum to discuss the Wrox book Beginning PHP4 by Wankyu Choi, Allan Kent, Chris Lea, Ganesh Prasad, Chris Ullman; ISBN: 9780764543647
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 22nd, 2004, 08:56 AM
Registered User
 
Join Date: Jan 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Beginning PHP4 chapter 8

Error in hangman example in chapter 8:
I got this error message:
     Undefined variable: letters
This can be solved, by replacing the last line in the first grey block on page 274:
     if (!isset($word_number)) { .......}
with
     if (!isset($word_number)) {
    $word_number = rand(1,count($words)) - 1;
    $letters = "";
     }

Same problem for variable $links : it can be set before the first line in the 3rd grey block on page 274:
     $links = ""





Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginning PHP4 chapter 8 jaapzwaan BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 January 26th, 2004 03:50 PM
Beginning PHP4 chapter 8 jaapzwaan BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 January 26th, 2004 03:48 PM
Beginning PHP4 keithu1 Wrox Book Feedback 1 October 1st, 2003 07:05 AM
Beginning PHP4 Chapter 8 sipb2002 Wrox Book Feedback 1 July 12th, 2003 12:12 AM
Beginning php4 wjt11 All Other Wrox Books 0 June 12th, 2003 11:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.