douque8855 2013-03-10 14:15
浏览 22

我可以根据查询创建表单吗? 在我的数据库中来自不同字段/表的表单中

from the title, you can probably tell i'm an amateur. However, i would like to create a form for my MySQL/ php site, which requires fields from different tables throughout my DB. Is this possible? or do i need to create a table with all the neccessary fields in it?

Also, isit possible to save the output of this form and view all the outputs upon requested?

Thanks in advance.

ask any questions if i left anything out. I kept it short as I think this may be a simple question :@!

really appreciate it.

  • 写回答

2条回答 默认 最新

  • drkwpgrdb092239314 2013-03-10 14:20
    关注

    Yes you can! PHP use the function echo to print data to the HTML page. this mean that you can read from the DB first and using IF to print different HTML form.

    for example(Pseudo Code):

    $in=getFrom(DB);
    
    if($in['key']=="value")
    {
        echo ".....specific HTML....... ";
    }
    else
    {
         echo ".....alternative HTML....... ";
    }
    
    评论

报告相同问题?

悬赏问题

  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 个人网站被恶意大量访问,怎么办
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制