4th quarter 17 php & my sql registration page

17
PHP & MySQL (Registration Page) by: Engr. Esmeraldo T. Guimbarda Jr.

Upload: esmeraldo-jr-guimbarda

Post on 24-Dec-2014

17.427 views

Category:

Technology


0 download

DESCRIPTION

PHP & MySQL

TRANSCRIPT

Page 1: 4th quarter   17 php & my sql registration page

PHP & MySQL(Registration Page)

by: Engr. Esmeraldo T. Guimbarda Jr.

Page 2: 4th quarter   17 php & my sql registration page

Activity:

Open Xampp Control Panel:

Page 3: 4th quarter   17 php & my sql registration page

Check running services of XAMPP.

Page 4: 4th quarter   17 php & my sql registration page

Open your web browser and type in localhost/phpmyadmin

Page 5: 4th quarter   17 php & my sql registration page

1. Click Database2. write section as name of your database3. then click Create

Page 6: 4th quarter   17 php & my sql registration page

As you can see, the database named section is created. Now click the database section

Page 7: 4th quarter   17 php & my sql registration page

1. By clicking section name we automatically making a new table2. Input name as login3. Input number of columns as 34. Then click Go

Page 8: 4th quarter   17 php & my sql registration page

1. Input the following data:

2. Click Save

Note: That Auto-increment allows a unique number to be generated when a new record is inserted into a table.

Name Type Length/Values Index AI

id INT PRIMARY (Check)

username VARCHAR 35

password VARCHAR 35

Page 9: 4th quarter   17 php & my sql registration page
Page 10: 4th quarter   17 php & my sql registration page

now create a HTML & a PHP file to connect with the database which was created in MySQL

Page 11: 4th quarter   17 php & my sql registration page

Open Notepad++

Page 12: 4th quarter   17 php & my sql registration page

Create a HTML file save as register.html

Note: Save to folder xampp\htdocs\section

Page 13: 4th quarter   17 php & my sql registration page

Create another PHP file save as register.php

Note: Save to folder xampp\htdocs\section

Page 14: 4th quarter   17 php & my sql registration page
Page 15: 4th quarter   17 php & my sql registration page
Page 16: 4th quarter   17 php & my sql registration page

Test files:● Open the browser and type the URL

localhost/section/register.html

Page 17: 4th quarter   17 php & my sql registration page

Check MySQL about the data that has been registered.