Hello,
I downloaded the code for "Content Management System" Ch.12 from web
http://www.wrox.com/dynamic/books/do...7582#downloads
for book "Beginning PHP, Apache, MySQL Web Development"
The program doesn't work correctly. I found a few errors, please help to solve them.
I have Windows 2000, Internet Explorer 6, IIS web server running and MYSQL4 and PHP4 installed.
The problems are:
I. (solved) in all files where you have "e-mail" word gives an error. So, I had to replace by "email" word.
II. (need you help)
in foloowing 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.