Skip to content

Commit 94b2cf1

Browse files
authored
Create README.md
1 parent 7329fb5 commit 94b2cf1

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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.

0 commit comments

Comments
 (0)