好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

php mysql替换字符串方法 - php函数

php mysql替换字符串方法

<?php   function  replace(){   $sql  = db_query("SELECT field_languages_value,nid FROM {content_type_company_profile} WHERE    field_languages_value like  '%Mandarin Chinese%' ");   while ( $result  = db_fetch_object( $sql )){   $a  =  explode ( "Mandarin Chinese" , $result ->field_languages_used_value);   $b  =  $a []. 'Chinese' . $a [1];   db_query("UPDATE content_type_company_profile SET field_languages_used_value =  '%s'  WHERE nid = %   //phpfensi测试数据 d", $b , $result ->nid);   }   }   ?>

查看更多关于php mysql替换字符串方法 - php函数的详细内容...

  阅读:43次