【问题标题】:How make CRUD of one to many in grocerycrud?如何在杂货店中制作一对多的 CRUD?
【发布时间】:2013-05-22 12:02:29
【问题描述】:

我有这样的表

用户

id ,name

用户电子邮件

id ,user_id,email

用户可能有多个电子邮件。我如何在 codeigniter 杂货店中对这些类型的数据进行 CRUD 操作?我试过 this 但没有工作。

【问题讨论】:

  • 你到目前为止所尝试的发布你的努力
  • 请阅读问题。我给了一个链接。我试过了。我尝试了我们官方网站上的所有文档

标签: php mysql database codeigniter grocery-crud


【解决方案1】:

查看此链接希望对您有所帮助

http://www.grocerycrud.com/documentation/options_functions/set_relation

void set_relation( foriegn key , table that has the foriegn key, any needed column like title or date or what ever you need to retrieve else )

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-10-30
    • 1970-01-01
    • 1970-01-01
    • 2014-06-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多