douhuang5331 2010-07-01 18:03
浏览 150

标记元数据

I am working with a CMS like system, which has a special field defined for use in its forms.

This field works similarly to google suggest, executing an sql query behind the scenes and displaying results.

The SQL query I am using selects 3 fields from table1, and concatenates them as a result.

What I need to do, is split this new metafield back into 3 distinct fields, so I can insert them into table2 along with the rest of the form.

How would I go about doing this normally in PHP? Javascript? Inbuilt PHP functionality?

I do wonder how much leeway I have as I am using provided input fields, not standard input fields.

  • 写回答

1条回答 默认 最新

  • drfrvbq736383 2010-07-01 21:21
    关注

    So your problem is that you want the "autocomplete" field to automatically fill out the form with the values of the fields when selected? If so, you probably either need to change the separator to something that can be easily split using Javascript (such as "|") or modify the SQL query and PHP code to ouput the 3 fields separately as well. This may be harder if you haven't written the autocomplete code yourself

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器