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 October 3rd, 2003, 06:28 AM
Authorized User
 
Join Date: Sep 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Jams30
Default dynamic.php problems in chapter 5

Hi

I just wondered if there was anyone else having the same issue as me with the try it out in chapter 5 of the book where a for loop is used to check the entry made by the user in dynamic.html. When I run this, all is fine although it takes a considerable amount of time to go from dynamic.php to dynamic2.php - system performance sits at 100% for a while before the results are produced and I was wondering if this was because the process is looping more times than the actual no. of children entered in dynamic.html?

While this is not stopping me from getting on with PHP and the book, I would appreciate it if anyone else has had a similar issue.


Thanks in advance

Jamal:D

 
Old October 3rd, 2003, 07:14 AM
Authorized User
 
Join Date: Sep 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Jams30
Default

Ok, so after looking at my coding again, I realised that line 12 of dynamic2.php had an error where, I had placed a space between quotations as follows:

} while ($CheckEmpty!=" ");

This should have been:
} while ($CheckEmpty!="");

Which has solved the issue of the length of processing time and resources as well as not returning "Not applicable" when entering a 0 or nothing at all!!


Regds

Jamal






Similar Threads
Thread Thread Starter Forum Replies Last Post
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
PHP Warning: PHP Startup: Unable to load dynamic l surendran Beginning PHP 1 May 29th, 2006 08:49 AM
begin php & mysql - chapter 12, user_form.php jon_stubber Beginning PHP 1 March 9th, 2006 10:57 AM
Beginning php 4 chapter 10 problems dakey Beginning PHP 3 February 13th, 2004 06:21 PM
Beginning php 4 chapter 10 problems ade Beginning PHP 2 June 19th, 2003 02:43 PM





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