php

在视图中有<td><img src="style/images/admin/xing.gif" width="5" height="6" />&nbsp;公司地址</td>
              <td><input name="adrs" type="text" class="text_input w330" value="<?php echo  $basic_info["adrs"]?>"/> </td>
但是从数据库中读取的数据显示乱码,怎么修改呢

解决方案 »

  1.   

    在model层吗? 
    public function basic_info()
         {
          $sqlsel_basic="select corp_name,corp_ename,corp_address,corp_contactman,corp_sex,corp_position,corp_qq,corp_phone,corp_fax,corp_email,corp_mobile,corp_weburl,corp_icp,corp_copyright  from {$this->tb_webbasic}";
          $presel_basic=$this->pdodb->prepare($sqlsel_basic);
    $presel_basic->execute();
    return $presel_basic->fetchColumn();

         }
    要怎样设置呢?