使用MYSQL将列值填充到userinterface中的文本框中以进行插入和选择 [英] Populate column values to the textboxes in userinterface for both insert and select using MYSQL

查看:90
本文介绍了使用MYSQL将列值填充到userinterface中的文本框中以进行插入和选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Quote:

如何从MySQL中检索数据时将列值填充到用户界面中的文本框,其中相同的文本框用于插入数据。

假设我有五个文本框。我必须通过该文本框插入数据并使用主键在相同的文本框中填充数据

How to populate column values to the textboxes in user interface while retrieving data from MySQL where the same textboxes are used to insert data.
Suppose I have five textboxes. I have to insert data through that text boxes and populate the data in the same textboxes using primary key





我尝试过:





What I have tried:

<tr><td>FIR No.</td><td><input type="text" name="e1" id="i1" ></td></tr>

推荐答案

尝试浏览此使用PDO和OOP PHP的CRUD [ ^ ]并查看多少你可以关注。如果您有问题,请继续阅读 W3Schools在线网络教程 [ ^ ]拿起丢失的部分。
Try going through this CRUD with PDO and OOP PHP[^] and see how much you can follow. If you have problem follow it through, you should head over to W3Schools Online Web Tutorials[^] to pick up the missing pieces.


这篇关于使用MYSQL将列值填充到userinterface中的文本框中以进行插入和选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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