Wrox Programmer Forums
|
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 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 April 12th, 2004, 09:00 AM
Authorized User
 
Join Date: Apr 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default Parse Error Solution

As a co-author of the book, I wanted to point out to everyone that may be having trouble with parse errors from the code that during the editing process, the variable $email was changed to $e-mail (which of course is an unacceptable variable name). Hopefully this will alleviate some of those headaches for you!
 
Old April 21st, 2004, 07:18 PM
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Elizabeth, I just bought a copy of your book (not only yours) and I really like it so far. Very well explained and relevant real world examples. Thanks a lot to you and the co-authors!

Regards,
alien

P.S. Thanks for the hint about the error in code, if there are any more errors, please update this post!

 
Old June 15th, 2004, 11:08 PM
Authorized User
 
Join Date: Jun 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Elizabeth,
Thank you for testing the code for the book. I'm new to PHP and started to learn it from your book. However, the downloaded code for the application(Ch.12) doesn't work(I use PHP 4). It gave me the following errors (see below). Please, it would be very appreciated, if you can make it work correctly and tell what I should change in the code to make it work.
Thank you,
*****************************************
in folowing seven files my browser gives "undefined variable" errors on the lines:

1.file comment.php
line7 outputStory($_GET['article']);
line31 showComments($_GET['article'],FALSE);

2.file cpanel.php
line7 "WHERE user_id=" . $_SESSION['user_id'];

3.file compose.php
line47 if ($_SESSION['access_lvl'] < 2)

4.file admin
line19

5.file reviewarticle.php
line12 outputStory($_GET['article']);
line17 "WHERE article_id=" . $_GET['article'];

6.file search.php
line23 linewhile ($row = mysql_fetch_array($result))

7.file viewarticle.php
line6 outputStory($_GET['article']);
line8 showComments($_GET['article'],TRUE);

Please help to make program work correctly,
Thank you.
 
Old June 16th, 2004, 01:38 AM
Authorized User
 
Join Date: Jun 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Elizabeth,
I found the problem why it didn't work: I had a misconfigured firewall on my computer.
Thank you.
 
Old May 1st, 2006, 10:08 PM
Registered User
 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

In chapter 13, I've run into some error messages I don't understand.

I initially had some trouble with the $e-mail variables name so I switched it to $eMail, now user.php seems fine, but I get the following error msg in user_transact.php:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/content/c/o/n/congressman2/html/mailingList/user_transact.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home/content/c/o/n/congressman2/html/mailingList/user_transact.php:36) in /home/content/c/o/n/congressman2/html/mailingList/user_transact.php on line 131

 
Old May 8th, 2009, 02:56 PM
Authorized User
 
Join Date: Nov 2008
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Thank you

hi. Thank you for giving such a nice book.
 
Old January 3rd, 2014, 05:13 AM
Registered User
 
Join Date: Jan 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default image upload error @ch07_manipulating and creating images with PHP

i m currently reading wrox books:beginning php 6 apache and mysql but the image submission code on chapter 7 is not working corretly at xampp 3.2.1n on windows 7.pls help me solving my problem and help me to directly communicate with the author:ELIZABETH NARAMORE
WAITING FOR AN EARLY AND P[OSITIVE REPLY





Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error: syntax error, unexpected T_ELSE in /h vipin k varghese BOOK: XSLT Programmer's Reference, 2nd Edition 4 September 29th, 2011 01:19 AM
Ch 4: Parse error: syntax error, unexpected T_SL hanizar77 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 June 23rd, 2008 09:17 PM
Parse error: syntax error, unexpected T_STRING ginost7 Beginning PHP 1 November 9th, 2007 02:51 AM
PHP Parse error: parse error, unexpected T_STRING geminient PHP How-To 4 August 18th, 2007 02:27 AM
Parse error: parse error, unexpected $end Ayodeji Adegbaju Pro PHP 3 January 12th, 2007 12:21 PM





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