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 May 5th, 2007, 03:15 PM
Registered User
 
Join Date: Aug 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 13 problem(undefined index)

hi,

I'm having trouble on chapter 13, the CMS. The articles display but if i click to view the Full story of the article nothing shows up.(no matter what or how many senteces/words i input. I've enabled some error repporting in my php and now i get an undefined index error. The exact error looks like this:
Code:
Notice: Undefined index: article in D:\Apache2\htdocs\cms\viewarticle.php on line 6

Notice: Undefined index: article in D:\Apache2\htdocs\cms\viewarticle.php on line 8
This is the full page code:
Code:
<?php
require_once 'conn.php';
require_once 'outputfunctions.php';
require_once 'header.php';

outputStory($_GET['article']);

showComments($_GET['article'], TRUE);

require_once 'footer.php';
?>
As you can see, im on Windows. I havent modified the code in any way.
I searched the forum for this problem but nothing like this seems to exist.
Can somoene please help me out?

Thanks alot!

PS- im using php5 and apache 2

  #2 (permalink)  
Old May 6th, 2007, 03:13 PM
Registered User
 
Join Date: Aug 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Looks like the forum has deserted..............

Anyone??>?

  #3 (permalink)  
Old February 15th, 2008, 06:10 AM
Registered User
 
Join Date: Jan 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Parser didn't found the 'outputfunctions.php' and required it.
Ensure the 'outputfunctions.php' in your htdoc folder of the apache.


Similar Threads
Thread Thread Starter Forum Replies Last Post
undefined index and variable p3allen2000 Pro PHP 1 November 1st, 2007 04:49 PM
Undefined index junemo Pro PHP 8 October 31st, 2007 05:45 PM
chapter 13 building an index page drb2k2 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 5 March 5th, 2006 07:22 PM
Undefined Index Error rit01 Beginning PHP 0 March 1st, 2006 10:03 AM
Undefined index ashinotani Beginning PHP 2 August 17th, 2004 03:31 PM





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