hm_do_save_post(array('post_title'=>$post_title,
  'post_content'=>$post_content,
  'post_category'=>$post_category,
  'tags_input'=>$tag,
  'post_date'=>$post_date,
  'post_author'=>$post_author,
  'post_meta_list'=>$post_meta_list));上面一段php代码,如何把 $post_title ,  前面加上一个字符   苹果电脑,该怎么修改呀

解决方案 »

  1.   

    hm_do_save_post(array(
      'post_title_apple'=>'苹果电脑',
      'post_title'=>$post_title,
      'post_content'=>$post_content,
      'post_category'=>$post_category,
      'tags_input'=>$tag,
      'post_date'=>$post_date,
      'post_author'=>$post_author,
      'post_meta_list'=>$post_meta_list));
    当您读数据循环数据的时候,取出下标为零的数据 让这个数据连接其他下标查询出来的数据就行了