How To Develop Vu Project CS619 Web Application Project (Part-3)

How to Build Final Project of CS619 Computer Science all phases Help Available in this section.
Post Reply
User avatar
ALI RAZA
★★★★★★★★★★★★★
★★★★★★★★★★★★★
Posts: 177
Joined: Fri Dec 22, 2017 8:10 am
Location: Lahore
Has thanked: 6 times
Been thanked: 7 times
Contact:
Status: Offline

How To Develop Vu Project CS619 Web Application Project (Part-3)

Post by ALI RAZA » Tue Sep 25, 2018 6:41 am

Aslamo Ali Kum Dear Friends.

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.
Image
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 .

Image

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 .

Image
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))
put this Query in SQL Editor and Click Go .

Image

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.
Image

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
Lets Start.
Download Bus Booking System in Php MySql For Free

Add This code in Register.php Above The Html Tag See In The Screen Shot
Image
Now open your app folder open classes and Add below Code in connection.php See The Screen Shot
Image

Now Every Thing For Registration process We have Done. Now We Register an Account in our app and Click The Register Button.
Image

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.
Image

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.



Post Reply

Last 10 Members Who Visited This Topic

User avatar ALI RAZA (6), User avatar Princes_Noor (1), User avatar Sonia (1)

  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest