Download Hotel Management System in Php Mysql For Free
Today Will Discuss How to Register In Our App. So First of all we Create a Form in Html and add User Types and Name Field and Email and Submit Button. So Look at the Code Below.
Note : on Above line 39 Change the button Value to Register and Remove Log In.Thanks
As you can see First of All We Included Same Code of Index.php File and in Center We Added A Table with Form who,s Action Attribute Going to Same Page it Means When Some one click on Submit This The Form Data Goes To Same register.php . So What We did . We Will Include Form Processing Code above The Html Tag of register.php File . I Will Show you php form Processing Code later But Now We Move To DataBase .How To Create Data Base and How To Create Table and Table Attributes So First of all you Go to Start Menu of Windows and Open Programs Open Xampp Control Penal Again Start Apache and MySQL Server.
After Starting Them Open Your Browser and put this Link in Address bar http://localhost/phpmyadmin you can See This Link in Screen Shot Given Below .
Now Follow the Below Screen Shoot and Click New and Put The Name you Data Base As Shown in Figure . Now After Putting the Name of Database Click on Create and You Will See in Next Screenshot That data base Will be created.So You Learned . How To Create Database In PHP MY ADMIN. Now in Next Step We Will Create Table With Name users .
Now Student Open Your Database myapp Clicking on it and Click on SQL and Mentioned in Screenshot .
Now We Will write Query to create a Table
Code: Select all
CREATE TABLE users (id int AUTO_INCREMENT PRIMARY KEY, name varchar(50) , email varchar(50) UNIQUE,type varchar (20), pwd varchar(50))
Student We have Created Table Users With id , name , email, pwd and our email attribute we set it on unique .
id is general pirmary Key that will increments automatically when new user Register. Starts From 1 .
Now Table is Successfully Created For our app it is very Interesting.
We have Almost Done . There is Only one Step left that is only Including code of php on register.php file To inserting data in to this table
Download Bus Booking System in Php MySql For Free
Add This code in Register.php Above The Html Tag See In The Screen Shot
Now open your app folder open classes and Add below Code in connection.php See The Screen Shot
Now Every Thing For Registration process We have Done. Now We Register an Account in our app and Click The Register Button.
As you can See our Registration an account is Successful. Now See That database myapp table users to see is really Record added in table.
So Amazing We have done Registration Process of CS619 Application Project App .
Download News Blog in Php My Sql For Free
You Almost Code This app your self and Enjoy . In Next Part We Will Discuss Log In Code and How to Log In This App . Till To Next Part Allah Hafiz.