Apache的error.log错误提示:
[Thu Sep 14 10:36:49 2006] [error] [client 127.0.0.1] PHP Notice: Undefined variable: _SESSION in C:\\Apache\\Apache2\\htdocs\\5u15\\header.php on line 53, referer: http://localhost/5u15/index.php
[Thu Sep 14 10:36:49 2006] [error] [client 127.0.0.1] File does not exist: C:/Apache/Apache2/htdocs/5u15/.$guestbook[$i-1][4], referer: http://localhost/5u15/displayAllGoods.php
[Thu Sep 14 10:36:52 2006] [error] [client 127.0.0.1] PHP Notice: Undefined variable: _SESSION in C:\\Apache\\Apache2\\htdocs\\5u15\\header.php on line 53, referer: http://localhost/5u15/GoodsByCategory.php
[Thu Sep 14 10:36:52 2006] [error] [client 127.0.0.1] PHP Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\\Apache\\Apache2\\htdocs\\5u15\\index.php on line 131, referer: http://localhost/5u15/GoodsByCategory.php
[Thu Sep 14 10:36:52 2006] [error] [client 127.0.0.1] PHP Notice: Undefined variable: db_id in C:\\Apache\\Apache2\\htdocs\\5u15\\index.php on line 140, referer: http://localhost/5u15/GoodsByCategory.php
[Thu Sep 14 10:36:52 2006] [error] [client 127.0.0.1] PHP Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in C:\\Apache\\Apache2\\htdocs\\5u15\\index.php on line 140, referer: http://localhost/5u15/GoodsByCategory.php
[Thu Sep 14 10:36:53 2006] [error] [client 127.0.0.1] PHP Notice: Undefined variable: _SESSION in C:\\Apache\\Apache2\\htdocs\\5u15\\header.php on line 53, referer: http://localhost/5u15/GoodsByCategory.php
[Thu Sep 14 10:36:53 2006] [error] [client 127.0.0.1] PHP Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\\Apache\\Apache2\\htdocs\\5u15\\index.php on line 131, referer: http://localhost/5u15/GoodsByCategory.php
[Thu Sep 14 10:36:53 2006] [error] [client 127.0.0.1] PHP Notice: Undefined variable: db_id in C:\\Apache\\Apache2\\htdocs\\5u15\\index.php on line 140, referer: http://localhost/5u15/GoodsByCategory.php
[Thu Sep 14 10:36:53 2006] [error] [client 127.0.0.1] PHP Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in C:\\Apache\\Apache2\\htdocs\\5u15\\index.php on line 140, referer: http://localhost/5u15/GoodsByCategory.php
[Thu Sep 14 10:36:49 2006] [error] [client 127.0.0.1] PHP Notice: Undefined variable: _SESSION in C:\\Apache\\Apache2\\htdocs\\5u15\\header.php on line 53, referer: http://localhost/5u15/index.php
[Thu Sep 14 10:36:49 2006] [error] [client 127.0.0.1] File does not exist: C:/Apache/Apache2/htdocs/5u15/.$guestbook[$i-1][4], referer: http://localhost/5u15/displayAllGoods.php
[Thu Sep 14 10:36:52 2006] [error] [client 127.0.0.1] PHP Notice: Undefined variable: _SESSION in C:\\Apache\\Apache2\\htdocs\\5u15\\header.php on line 53, referer: http://localhost/5u15/GoodsByCategory.php
[Thu Sep 14 10:36:52 2006] [error] [client 127.0.0.1] PHP Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\\Apache\\Apache2\\htdocs\\5u15\\index.php on line 131, referer: http://localhost/5u15/GoodsByCategory.php
[Thu Sep 14 10:36:52 2006] [error] [client 127.0.0.1] PHP Notice: Undefined variable: db_id in C:\\Apache\\Apache2\\htdocs\\5u15\\index.php on line 140, referer: http://localhost/5u15/GoodsByCategory.php
[Thu Sep 14 10:36:52 2006] [error] [client 127.0.0.1] PHP Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in C:\\Apache\\Apache2\\htdocs\\5u15\\index.php on line 140, referer: http://localhost/5u15/GoodsByCategory.php
[Thu Sep 14 10:36:53 2006] [error] [client 127.0.0.1] PHP Notice: Undefined variable: _SESSION in C:\\Apache\\Apache2\\htdocs\\5u15\\header.php on line 53, referer: http://localhost/5u15/GoodsByCategory.php
[Thu Sep 14 10:36:53 2006] [error] [client 127.0.0.1] PHP Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\\Apache\\Apache2\\htdocs\\5u15\\index.php on line 131, referer: http://localhost/5u15/GoodsByCategory.php
[Thu Sep 14 10:36:53 2006] [error] [client 127.0.0.1] PHP Notice: Undefined variable: db_id in C:\\Apache\\Apache2\\htdocs\\5u15\\index.php on line 140, referer: http://localhost/5u15/GoodsByCategory.php
[Thu Sep 14 10:36:53 2006] [error] [client 127.0.0.1] PHP Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in C:\\Apache\\Apache2\\htdocs\\5u15\\index.php on line 140, referer: http://localhost/5u15/GoodsByCategory.php
<?php ... ?>,不要用<? ... ?>.在php 5下最好不要再用<? ... ?>这种标记了
[Thu Sep 14 11:03:41 2006] [error] [client 127.0.0.1] PHP Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\\Apache\\Apache2\\htdocs\\5u15\\index.php on line 131, referer: http://localhost/5u15/GoodsByCategory.php
[Thu Sep 14 11:03:41 2006] [error] [client 127.0.0.1] PHP Notice: Undefined variable: db_id in C:\\Apache\\Apache2\\htdocs\\5u15\\index.php on line 140, referer: http://localhost/5u15/GoodsByCategory.php
[Thu Sep 14 11:03:41 2006] [error] [client 127.0.0.1] PHP Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in C:\\Apache\\Apache2\\htdocs\\5u15\\index.php on line 140, referer: http://localhost/5u15/GoodsByCategory.php
[Thu Sep 14 11:07:48 2006] [error] [client 127.0.0.1] PHP Notice: Undefined index: username in C:\\Apache\\Apache2\\htdocs\\5u15\\header.php on line 53, referer: http://localhost/5u15/GoodsByCategory.php
[Thu Sep 14 11:07:48 2006] [error] [client 127.0.0.1] PHP Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\\Apache\\Apache2\\htdocs\\5u15\\index.php on line 131, referer: http://localhost/5u15/GoodsByCategory.php
[Thu Sep 14 11:07:48 2006] [error] [client 127.0.0.1] PHP Notice: Undefined variable: db_id in C:\\Apache\\Apache2\\htdocs\\5u15\\index.php on line 140, referer: http://localhost/5u15/GoodsByCategory.php
[Thu Sep 14 11:07:48 2006] [error] [client 127.0.0.1] PHP Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in C:\\Apache\\Apache2\\htdocs\\5u15\\index.php on line 140, referer: http://localhost/5u15/GoodsByCategory.php
把错误显示关掉就行了这些在php4也应该有,不过可能在php4里关掉了