File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ # Form-insert-mysql
2+
3+ DESCRIPTION:
4+
5+ Simply example of PHP script that includes a html form to insert its data into Mysql database.
6+
7+ REQUIREMENTS:
8+
9+ PHP & MySQL
10+
11+ USAGE:
12+
13+ 1.) Create MySQL table called "table_form" that will receive form content. To do this, simply
14+ import table struct of file “table_form.sql” attached.
15+
16+ 2.) Open file "form.php" using a text editor and modify the following lines to use your MySQL
17+ hosting configuration:
18+ $mysqlserverhost = "YOUR-MYSQL-HOST";
19+ $database_name = "YOUR-MYSQL-DATABASE-NAME";
20+ $username_mysql = "YOUR-MYSQL-USERNAME";
21+ $password_mysql = "YOUR-MYSQL-PASSWORD";
22+
23+ 3.) Upload file "form.php" to your hosting account and load it through browser.
24+
25+ 4.) Fill form with any data you want to be inserted in MySQL table named "table_form".
26+
27+ COLLABORATIONS:
28+
29+ Collaborations to improve this script are always webcome.
You can’t perform that action at this time.
0 commit comments