相關(guān)關(guān)鍵詞
關(guān)于我們
最新文章
php實現(xiàn)用戶注冊密碼的crypt加密
本文實例為大家分享了php用戶注冊密碼的加密,供大家參考,具體內(nèi)容如下
一、代碼
1、conn.php
<?php $conn = mysql_connect("localhost", "root", "111") or die("連接數(shù)據(jù)庫服務器失??!".mysql_error()); //連接MySQL服務器 mysql_select_db("db_database21",$conn); //選擇數(shù)據(jù)庫db_database21 mysql_query("set names utf8"); //設置數(shù)據(jù)庫編碼格式utf8 ?>