动态字段js / php到MySql需要动态提交到数据库 [英] Dynamic Fields js/php to MySql need to submit dynamically to the database

查看:61
本文介绍了动态字段js / php到MySql需要动态提交到数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法从javascript添加行中获取值作为一行动态转换为MySql,只有表单值显示为下面的表格作为一行。我把它作为一个数组,但没有这样的运气,我已经尝试了很多方法的代码。我不知道我做错了什么,请写出正确的方法。


展开 | 选择 | Wrap | 行号

解决方案

我建​​议你需要使用ajax来获取行中字段的所有值,你需要循环插入,我无法解释它好吧,我将为您创建一个示例程序,您可以自定义它。对不起,如果我回复这么晚。这几天我很忙,我正在为公司创建一个系统,并使用rockwell软件编辑一些机器操作系统。


我理解,并将等待你的回复。我已经打了很多脑袋。正如在我发给你的其他帖子中我的其他脚本一样,但textarea问题,所以合并,没有运气,因为子单元格对textarea不利,因为重新填充了innnerHTML。我真的不明白为什么动态不容易。好的,请描述一下你的Ajax方法,因为我是那个语言的新手。


这就是我现在所拥有的

展开 | 选择 | Wrap | 行号< /跨度>

I can not get the values from the javascript add row to go dynamically as a row into MySql only the form values show up as the form below as one row. I made it as an array, but no such luck, I have tried this code around a multitude of ways. I don''t know what I am doing wrong, kindly write out the correct way.



Expand|Select|Wrap|Line Numbers

解决方案

I suggest you need to use ajax in order to get all the values of the fields in the row, You need to loop your insertion, I can''t explain it very well, I will create a sample program for you and you can customize it. Sorry if i replied so much late. I''m so busy this past few days, I''m creating a system for the company and edit some system for machine operation, using rockwell software.


I understand, and will await your reply. I have beat my head around this a lot. As in my other posts to you my other script worked as such but textarea issues, so merged and no luck as with child cells no good for textarea as re-populates innnerHTML. I really don''t see why there isn''t easy way dynamically. Okay, please be descriptive on your Ajax method as I am new with that language.


This is what i''ve got now

Expand|Select|Wrap|Line Numbers


这篇关于动态字段js / php到MySql需要动态提交到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆