久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      php查詢數(shù)據(jù)庫并輸出亂碼

      php查詢數(shù)據(jù)庫并輸出亂碼

      PHP查詢數(shù)據(jù)庫輸出亂碼

      1、首先得弄清楚你的數(shù)據(jù)庫,表,字段的排序規(guī)則(編碼方式)

      2、在php中使用

      $charset=mysqli_character_set_name($con);  //返回數(shù)據(jù)庫默認字符集的編碼utf8 echo "默認字符集為: " . $charset;

      3、php頭部的編碼規(guī)則應與數(shù)據(jù)庫一致

      header("Content-type:text/html;charset=utf8");//字符編碼設置

      4、html頁面的編碼規(guī)則也要一致

      <meta http-equiv="Content-Type" content="text/html; charset=utf8">

      推薦教程:PHP視頻教程

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號