PHP button returns 404 Error-php Tutorial

Source: Internet
Author: User
The PHP button returns the content in the 404 error book, and the database and login. PHP file have been created.
 ".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 <<<_END _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<$rows; ++$j) { $row = mysql_fetch_row($result); echo <<<_END
               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]); }?>

The page is displayed normally, but an Object Not Found Error occurs when you press add recode, and Error 404 is displayed below.
Please help me...


Reply to discussion (solution)

Add a breakpoint for one-step debugging.


Sqltext. php ?? File ??

Does sqltext. php exist?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.