Ignore:
Timestamp:
Apr 22, 2009, 1:58:57 PM (16 years ago)
Author:
jazz
Message:
  • 設定 UTF-8 為 MySQL Query 預設顯示字集
File:
1 edited

Legend:

Unmodified
Added
Removed
  • hadoop-register/forget_password.php

    r57 r58  
    6464    // 連結資料庫
    6565      $link = mysql_connect($mysql_host, $mysql_user, $mysql_password) or die(mysql_error());
    66        mysql_select_db($mysql_database, $link) or die(mysql_error() );
     66      mysql_select_db($mysql_database, $link) or die(mysql_error() );
     67      mysql_query("SET NAMES 'utf8'");
    6768
    6869      // 更新使用者認證碼
Note: See TracChangeset for help on using the changeset viewer.