I am using a Wampserver 2.0 for database-web development. When i ran the following the php code which is embbeded in my html form, the server crashes meanwhile other php processes on different pages are responding effectively. I have checked my apache error log and saw the following message: [Fri Oct 22 11:37:04 2010] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/setapro/setapro, referer: This is php code i executed:
<?php
include db_inc.php ;
$sql = "select AVG(no_of_satelites) as Mean Number of Satelites , AVG( height_of_geoid ) as Mean of HDOP , AVG(rmc_gga_longitude) as Mean of Longitude , AVG(rmc_gga_latitude) as Mean of latitude FROM total_rmcs_ggas ";
$result = mysql_query($sql, $link);
if (!$result) {
die("Query to show averages from table failed");
}
echo Number of rows returned from query = .mysql_num_rows($result) or die();
echo "<h2>Table:Averages for the GPS Receiver</h2>";
while ($row = mysql_fetch_assoc($result)){
echo $row[ Mean Number of Satelites ]. .$row[ Mean of HDOP ]. .$row[ Mean of Longitude ]. .$row[ Mean of latitude ]. <br /> ;
}
mysql_free_result($result);
mysql_close();
?>
我不知道它说的是哪个文件,因为我的文档根目录中有所有文件。我需要一些帮助。非常感谢。“setapro”是项目文件夹的名称,而不是文件。