Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 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 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...
Reply With Quote
  #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

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



All times are GMT -4. The time now is 04:16 AM.


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