duancheng8000 2015-12-08 21:22
浏览 21
已采纳

同一表格中的多个表格数据[关闭]

I have a table called invoice_details consisting of : id invoice_id product_id product_name quantity price

I have a form field that allows input of the product name,qty,etc.
I want to add a column that will be called "room". The script I have now auto generates more form fields as I need them, in which I could add "room" and specify within the form field, but I want to have the following workflow :

  1. Page loads Rooms(or lack of)
  2. click a button to add a room(or multiples)
  3. ability to search products, and click and drag products to specific rooms
  4. have all data saved correspondingly in sql database

What web technologies do I need to research to be able to achieve the above result?

  • 写回答

1条回答 默认 最新

  • douyan1972 2015-12-08 22:02
    关注
    1. JavaScript/jQuery to handle the front end clicking dragging
    2. PHP (I assume you're already using it) to handle the database queries
    3. PDO - a function in PHP for writing to databases
    4. AJAX - a way of getting data from your JavaScript front end to the PHP backend

    Incidentally - you might want to look at InteractJS which is designed to handle the drag and drop your're looking for - you just have to then AJAX the data back to your PHP server for processing.

    Good luck!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 TLS1.2协议通信解密
  • ¥40 图书信息管理系统程序编写
  • ¥20 Qcustomplot缩小曲线形状问题
  • ¥15 企业资源规划ERP沙盘模拟
  • ¥15 树莓派控制机械臂传输命令报错,显示摄像头不存在
  • ¥15 前端echarts坐标轴问题
  • ¥15 ad5933的I2C
  • ¥15 请问RTX4060的笔记本电脑可以训练yolov5模型吗?
  • ¥15 数学建模求思路及代码
  • ¥50 silvaco GaN HEMT有栅极场板的击穿电压仿真问题