Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 24th, 2005, 01:16 PM
Registered User
 
Join Date: Apr 2005
Location: Cupertino, CA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 7 check_image.php, undefined variable

Hello all,

On page 199 of PHP5, Apache.… 7th line from the bottom of check_image.php;
<strong><?php echo $image_name; ?></strong><br>
contains an undefined variable $image_name could this be $ImageName instead?
I don't know what the intention of this line is. It is ignored by the browser as is shown by Figure 7-3

RonB

Reply With Quote
  #2 (permalink)  
Old June 1st, 2005, 04:55 PM
Authorized User
 
Join Date: May 2005
Location: , , .
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ron, I haven't got PHP5, Apache .. book, but if you post back the full code, I'll have a look..

It could be you found the first piece of errata..

Reply With Quote
  #3 (permalink)  
Old June 3rd, 2005, 10:31 PM
Authorized User
 
Join Date: Jun 2004
Location: , , .
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Good catch!

That line should actually read:
<strong><?php echo $image_caption; ?></strong><br>

(Actually if you look at the later revision where those lines were deleted, it actually does use $image_caption...this first oops must've snuck past our crack testing team. :) )

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Undefined offset: 1 chapter 5 form.php sreenivasharish BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 November 9th, 2008 06:08 PM
php question, undefined variable benappease Beginning PHP 0 December 6th, 2007 02:35 PM
Ch 7 check_image.php mattcw BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 October 10th, 2006 12:26 PM
XSLT & PHP -undefined variable- is . a culprit? underdog XSLT 3 May 8th, 2006 10:04 AM
Undefined Variable - Chapter 4 JohnAlden BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 21 August 25th, 2004 11:55 AM



All times are GMT -4. The time now is 09:54 PM.


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