[英]How to create a form to save into sql, sort, retrieve and export to excel
I was just getting started with PHP, MySQL and phpmyadmin. 我刚开始使用PHP,MySQL和phpmyadmin。
The reason I want to learn is to have a books database of my own. 我想学习的原因是拥有自己的图书数据库。
I want to create a HTML / PHP form where I can enter the books entry (stock received). 我想创建一个HTML / PHP表单,可以在其中输入书籍条目(收到的库存)。 Then I want them to store in MySQL.
然后,我希望它们存储在MySQL中。 Once I have enough books I want to export them into excel using PHP or HTML by sorting / filtering required data from the database and export them into excel.
一旦我有足够的书,我想通过对数据库中的所需数据进行排序/过滤将它们使用PHP或HTML导出到excel中,然后将它们导出到excel中。
They key thing is before all I have to save all my books titles in the database. 他们的关键是在将所有我的书名保存在数据库之前。 Later by using the form I want to save the stock received into respective titles with a ability to even view and delete the stock whenever required for specific title (add stock / delete stock).
以后,使用表格,我想将收到的库存保存到相应的标题中,并能够在特定标题需要时甚至查看和删除库存(添加库存/删除库存)。
Any guidence is highly appreciated. 任何指导都将受到高度赞赏。
Regards Narendra S 问候纳伦德拉S
This question is exceptionally broad. 这个问题异常广泛。 You have a decent idea there with PHP/MySQL and so on, but, you'll have to sit down and learn the languages and so on in order to make this happen.
您在那里使用PHP / MySQL等有一个不错的主意,但是,您必须坐下来学习各种语言等,才能实现这一目标。 Here are some links to get you started.
这里有一些链接可以帮助您入门。 Read over those, get a server set up to test on, and go from there.
阅读这些内容,设置服务器进行测试,然后从那里进行测试。
https://www.tutorialspoint.com/php/php_and_mysql.htm https://www.tutorialspoint.com/php/php_and_mysql.htm
http://www.freewebmasterhelp.com/tutorials/phpmysql http://www.freewebmasterhelp.com/tutorials/phpmysql
您可以随时将mysql数据导出为CSV 。可以使用Excel打开此格式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.