Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0
This is the forum to discuss the Wrox book Beginning PHP5, Apache, and MySQL Web Development by Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz, Michael K. Glass; ISBN: 9780764579660
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 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
  #1 (permalink)  
Old February 16th, 2006, 06:09 PM
Registered User
 
Join Date: Feb 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 4 table3.php

I have noticed something in the code, which goes something like this:
Code:
1. $movie_details .= <<<EOD
2. <tr>
3. <td><a href="movie_details.php?movie_id=$movie_id"
4. title="Find out more about $movie_name">$movie_name</td>
5. <td>$director</td>
6. <td>$leadactor</td>
7. </tr>
Now if you look at line number 3 it starts with <a> but have no endings in line nr. 4
I have tryed it in my browser and the code didn't produce any error but i just thought
it would be better with ending tags...
  #2 (permalink)  
Old February 16th, 2006, 07:39 PM
Authorized User
 
Join Date: Feb 2006
Location: , , .
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey whats up Dude? I saw your post, actually I didnt notice that before. So when I looked at my code and also the books code and the downloaded code. They all had the same code without the closing </a>. The code probably ran fine because HTML is pretty forgiving compared to Java and PHP and other languages. I changed mine with the </a> and it still worked the same. I had it set up $movie_name </a></td> on line 4. All and all with or without it I think your good to go. But in future situations things might be different depending on what you are doing with the link...sometimes not closing the <a href will hyper link up your work if you dont close it. Keep up the good work and keep coding!!! Good eye on spotting it too! Take Care



Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 3 - PHP fixxxer125 BOOK: CSS Instant Results 2 October 18th, 2007 02:14 PM
chapter 10 Emailing with php - firstmail.php vijdev BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 July 19th, 2007 01:12 AM
begin php & mysql - chapter 12, user_form.php jon_stubber Beginning PHP 1 March 9th, 2006 10:57 AM
parse error $end pag 118 table3.php vkranendonk BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 February 2nd, 2006 12:05 PM
Chapter 6 commit.php czambran BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 4 October 3rd, 2004 10:20 PM





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