Which of the following is the php code used to connect to the database?

Source: Internet
Author: User
What's wrong with the php connection code! & Lt ;? Php $ find = mysql_connect (da7297f80aa7a35ad8418898e99a6156, 121f559f1e06b2889109f0bc8af7e69d, 387d0ee9a9, where is the php connection code to the database!
$ Find = mysql_connect (da7297f80aa7a35ad8418898e99a6156, 121f559f1e06b2889109f0bc8af7e69d, done );
If (! $ Find ){
Echo "database connection failed ";
} Else {
Echo "database connection successful ";
}
$ Data = mysql_select_db (0e55dc7af851d87009b142fcd44757f3, $ find );
Mysql_query ("set name 'utf8 '");
?>
I want to use MD5 encryption instead of database information! However, the browser has no output! What's wrong? For more information, see database s:
------ Solution --------------------
Just encrypt the user password,

Don't even connect to the database with the md5 username and password.

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.