简体   繁体   English

如何创建一个表单以保存到sql中,进行排序,检索和导出到excel

[英]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.

相关问题 如何在Drupal 7中创建表单,在管理面板中保存数据并在excel中导出数据? - How to create form in Drupal 7 with save data in admin panel and export data in excel? 如何按日期对从sql数据库导出到excel的多个表进行排序? - How can I sort multiple tables i export from an sql database to excel by date? 如何创建自定义排序并保存 - How to create custom sort and save it 如何使用PHP将SQL表导出为Excel格式 - How to export an SQL table to an excel format with PHP 如何将 HTML 表格保存为草稿,然后检索并填写 rest? - How to save an HTML form as draft and then retrieve and fill the rest on later time? 两个问题,如何在html中创建调查结果页面? 以及如何在 excel 中保存来自表单的用户输入? - Two questions, How to create a survey result page in html? and how do i save user input from form in excel? 如何创建 function 以将数据导出到 excel 文件 PHP - How do i create a function to export data to a excel file PHP 如何从 laravel 导出中创建只有 1 行的 excel 文件 - How create excel file with only 1 row by id from laravel export 将 Excel 导出保存到文件位置 PHP - Save Excel Export to File Location PHP 数据导出到excel并直接保存到目录(文件夹) - Data export to excel & save directly to the directory (folder)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM