回答

收藏

返回SQL查询为数组

技术问答 技术问答 286 人阅读 | 0 人回复 | 2023-09-12

我正在使用jqueryui自动完成插件。它使用它。json提取项目。
  @; j  Y$ d% P! I; ]* I* H我想修改它,以便从数据库中提取项目。
3 h! R' N8 y/ v6 t8 w/ t, \+ ]- X这是一个应该的项目:! S* C. y$ l/ e+ R8 }
$items = array("Great Bittern"=>"Botaurus stellaris","Great2 Bittern"=>"Botaurus stellaris 2");如何从表中提取数据并像上面的代码一样写入php文件的sql查询?
- z9 [7 ]- E2 Z- h: g, RTable : customerid_customer | name_customer | country_customer我希望那个数组产生 id_customer => name_customer
* g9 |- [7 f+ k3 O                                                                ' X8 u) g' f" n7 @) e% U( F
    解决方案:
分享到:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则