https://github.com/fernandod1/form-insert-mysql
Simply example of PHP script that includes a html form to insert its data into Mysql database.
https://github.com/fernandod1/form-insert-mysql
form forms insert-data insert-records insert-script inserting insertion mysql mysql-connection mysql-connector mysql-database mysqli php php5 php7 phpmyadmin sql
Last synced: 9 months ago
JSON representation
Simply example of PHP script that includes a html form to insert its data into Mysql database.
- Host: GitHub
- URL: https://github.com/fernandod1/form-insert-mysql
- Owner: fernandod1
- License: other
- Created: 2019-10-29T00:00:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-02T12:09:10.000Z (about 5 years ago)
- Last Synced: 2025-06-24T15:05:48.847Z (9 months ago)
- Topics: form, forms, insert-data, insert-records, insert-script, inserting, insertion, mysql, mysql-connection, mysql-connector, mysql-database, mysqli, php, php5, php7, phpmyadmin, sql
- Language: PHP
- Homepage: https://www.fernando.info
- Size: 6.84 KB
- Stars: 8
- Watchers: 0
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Form-insert-mysql
DESCRIPTION:
Simply example of PHP script that includes a html form to insert its data into Mysql database.
REQUIREMENTS:
PHP & MySQL
USAGE:
1.) Create MySQL table called "table_form" that will receive form content. To do this, simply
import table struct of file “table_form.sql” attached.
2.) Open file "form.php" using a text editor and modify the following lines to use your MySQL
hosting configuration:
$mysqlserverhost = "YOUR-MYSQL-HOST";
$database_name = "YOUR-MYSQL-DATABASE-NAME";
$username_mysql = "YOUR-MYSQL-USERNAME";
$password_mysql = "YOUR-MYSQL-PASSWORD";
3.) Upload file "form.php" to your hosting account and load it through browser.
4.) Fill form with any data you want to be inserted in MySQL table named "table_form".
COLLABORATIONS:
Collaborations to improve script are always welcome.