回答

收藏

返回SQL查询为数组

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

我正在使用jqueryui自动完成插件。它使用它。json提取项目。
. t3 D. K2 h, O# @我想修改它,以便从数据库中提取项目。
0 |; V( x8 h$ E3 z0 q- r% j这是一个应该的项目:
4 |. k* ?$ o+ j  J$items = array("Great Bittern"=>"Botaurus stellaris","Great2 Bittern"=>"Botaurus stellaris 2");如何从表中提取数据并像上面的代码一样写入php文件的sql查询?
/ j: v2 M& G% ?5 lTable : customerid_customer | name_customer | country_customer我希望那个数组产生 id_customer => name_customer
+ E: a- S$ ?2 p* i0 s6 q                                                               
  ~% n" _3 p8 f/ h" K    解决方案:
分享到:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则