欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

PHP按钮返回404错误

程序员文章站 2022-05-17 09:29:21
...
书上的内容,然后已经建立了数据库和login.php文件。
".mysql_error()."

"; } if(isset($_post['author']) && isset($_post['title']) && isset($_post['category']) && isset($_post['year']) && isset($_post['isbn'])) { $author = get_post('author'); $title = get_post('title'); $category = get_post('category'); $year = get_post('year'); $isbn = get_post('isbn'); $query = "INSERT INTO classics VALUES". "('$author','$title','$category','$year','$isbn')"; if(!mysql_query($query, $db_server)) { echo "INSERT failed: $query
".mysql_error()."

"; } } echo
                                  Author                    Title                 Category                     year                     ISBN 
_END; $query = "SELECT * FROM classics"; $result = mysql_query($query); if(!$result) die("Datebase access failed: ".mysql_error); $rows = mysql_num_rows($result); for($j = 0; $j Author $row[0] Title $row[1] category $row[2] year $row[3] ISBN $row[4]
_END; } mysql_close($db_server); function get_post($var) { return mysql_real_escape_string($_POST[$var]); }?>
该网页显示正常,但是一按ADD RECODE按钮就会出现Object Not Found错误,并且底下有Error 404。
求大神帮忙呢。。。


回复讨论(解决方案)

加断点一步一步调试。


sqltext.php ??文件有??

sqltext.php 存在吗?