返回列表 發帖

0618_資料庫連接語法

db_conn.php

<?php
    $db_locate = "localhost";   // 資料庫位址
    $db_username = "root";
    $db_password = "*******"; //伺服器密碼
    $db_database = "customer_db";

    $conn = mysql_connect($db_locate,$db_username,$db_password);
    mysql_select_db($db_database);
    mysql_set_charset("utf-8",$conn);
?>
May

返回列表