gpt4 book ai didi

php - 未找到对象!在此服务器上找不到请求的 URL

转载 作者:行者123 更新时间:2023-11-29 21:39:51 29 4
gpt4 key购买 nike

我正在尝试创建一个页面,以表格形式显示 mysql 表的所有记录,即票价。但它在浏览器中显示以下消息

Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. If you think this is a server error, please contact the webmaster.
Error 404
localhost
Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.5.30

这是我的代码:

<?php
include("dbCon.php");
if(isset($_POST['view'])) {
$vquery = mysql_query("SELECT * FROM fares ORDER BY sno ASC");
echo "<table border='1'>";
while($row = mysql_fetch_array($vquery)){
echo "<tr>";
echo "<td>".$row['sno']."</td>";
echo "<td>".$row['destination']."</td>";
echo "<td>".$row['distance']."</td>";
echo "<td>".$row['Express']."</td>";
echo "<td>".$row['Luxury']."</td>";
echo "<td>".$row['Volvo_ac']."</td>";
echo "<td>".$row['Volvo_nac']."</td>";
}
echo "</table>";
}
?>

最佳答案

无法发表评论,因此将其发布为答案

检查您输入的网址。

localhost/viewfares.php

应该放在您的网址中,当人们通常忘记 .php

时就会发生该错误

关于php - 未找到对象!在此服务器上找不到请求的 URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34626487/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com