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 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 Display Modes
  #1 (permalink)  
Old April 12th, 2004, 09:00 AM
Authorized User
 
Join Date: Apr 2004
Location: Cincinnati, OH, USA.
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!
Reply With Quote
  #2 (permalink)  
Old April 21st, 2004, 07:18 PM
Registered User
 
Join Date: Apr 2004
Location: , , Canada.
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!

Reply With Quote
  #3 (permalink)  
Old June 15th, 2004, 11:08 PM
Authorized User
 
Join Date: Jun 2004
Location: , , .
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.
Reply With Quote
  #4 (permalink)  
Old June 16th, 2004, 01:38 AM
Authorized User
 
Join Date: Jun 2004
Location: , , .
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.
Reply With Quote
  #5 (permalink)  
Old May 1st, 2006, 10:08 PM
Registered User
 
Join Date: Aug 2005
Location: , , .
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

Reply With Quote
  #6 (permalink)  
Old May 8th, 2009, 02:56 PM
Authorized User
 
Join Date: Nov 2008
Location: virudhunagar, tamil nadu, India.
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Thank you

hi. Thank you for giving such a nice book.
Reply With Quote
  #7 (permalink)  
Old January 3rd, 2014, 04:13 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Reply With Quote
Reply


Thread Tools
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
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 01: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 11:21 AM



All times are GMT -4. The time now is 02:27 AM.


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