Changeset 58 for hadoop-register


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

Legend:

Unmodified
Added
Removed
  • hadoop-register/check_activate_code.php

    r57 r58  
    1313  $link = mysql_connect($mysql_host, $mysql_user, $mysql_password) or die(mysql_error() );
    1414  mysql_select_db($mysql_database, $link) or die(mysql_error() );
     15  mysql_query("SET NAMES 'utf8'");
    1516
    1617  // 抓取使用者認證碼
  • hadoop-register/check_user_identification.php

    r57 r58  
    2222  $link = mysql_connect($mysql_host, $mysql_user, $mysql_password) or die(mysql_error() );
    2323  mysql_select_db($mysql_database, $link);
     24  mysql_query("SET NAMES 'utf8'");
    2425
    2526  // 驗證帳號密碼是否正確
  • 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      // 更新使用者認證碼
  • hadoop-register/re_send_activate_code.php

    r57 r58  
    1919  $link = mysql_connect($mysql_host, $mysql_user, $mysql_password) or die(mysql_error());
    2020  mysql_select_db($mysql_database, $link) or die(mysql_error() );
     21  mysql_query("SET NAMES 'utf8'");
    2122   
    2223  // 更新使用者認證碼
Note: See TracChangeset for help on using the changeset viewer.