Questions about DW connecting to MySQL Database

Source: Internet
Author: User
My computer is equipped with Phpstudy integrated software that can be connected to the MySQL database by opening the DW before learning. Backstage I installed an EPP software, with EPP handwritten a registration page, also handwritten the connection database program. The connection was successful. But when I want to use DW to connect MySQL database, I can't connect it. The DW hints are:
HTTP Error 404 could not find file. The problem may be caused by a few reasons:
1) There is no test server running on the server machine.
2) The test server specified for the site is not mapped to Http://localhost/_mmServerScripts/MMHTTPDB.phpURL. Make sure the URL prefix is mapped to the root of your site
Ask God for help.


Reply to discussion (solution)

Enter your project address directly in the browser and try it out.

Enter your project address directly in the browser and try it out.
Thank you so much! Although you can not understand my meaning, but to say the address is very helpful to me, I went back to the test server address modified to the root directory, it is OK.

$shic = ". /upload/". $fname;
mysql_select_db ($database _conn, $conn);
mysql_query ("INSERT into CP (Shc,shic,djs,nr,jg,ssel) VALUES
(' $_POST[SHC] ', ' $shic ', ' $_post [DJs] ', ' $_post [nr] ', ' $_post [JG] ', ' $_post [Ssel] ');
Mysql_close ($conn);
Header ("Location:". ") Cp.php ");
?>
Heroes, help me look! Connection code several times, the other plug-in connection is good, but this time not alive!

  • 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.