Tuesday, 26 January 2016

Fanduel Affliate Webpage using PHP Part 2

FANDUEL WEBPAGE LOGIN AND REGISTRATION USING PHP AND MYSQL DATABASE.

Part 11 CREATING OF REGISTRATION PAGE AND CONNECTION TO DATABASE



As per the PART 1 of this project, understanding how to create a database by simple downloading the Xampp server and access PHPMYADMIN page is very vital. But firstly below is the basic HTML design for the registration form. 


The above shows the design of the registration form using tables and giving the input and names as require.

Note: The form would be properly designed and arrange with the help of CSS styling.

Connecting form to the Database.
once value is input it records in the database create with the database named TEST and table name reg_details.

CREATING OF LOGIN PAGE AND CONNECTION TO DATABASE


Above is the overview of the Login Page and below is the code snippet showing hot to create the login tables and retrieving data stored from the registration form in the database.



As seen above is the snippet showing how the username and password can be retrieved from the database. This is just a sample project on inserting and retrieving data from the database using PHP.

Tuesday, 19 January 2016

Fanduel Affliate Webpage using PHP

CREATING FANDUEL WEBPAGE USING PHP AND MYSQL DATABASE

PART 1 Creating Home Page




STEPS:


  1. Download an Apache Server from link to suit your PC specification (i.e x86 or x64).
  2.  Install desired Apache Server on PC and and you are ready to go.
  3. At the time of this project, i download 32bit Xampp 7.0.2 server.
  4. After installation, run the application, then click start on Apache and MYSQl to run the application as shown below in FIG 1. ( it is also important to make sure MYSQL is running properly by opening an internet explore and typing localhost/PHPMYADMIN as seen in FIG 11)
FIG 1

FIG 11

Note: In order to View Pages on the web explorer, all files need to be saved in the server directory named htdocs. you can find this by simply following this step. C:\xampp\htdocs and there you can save files with .PHP ending file name.

Below are the Code Snippet for the HomeScreen of Fanduel Affiliate page.

INDEX.php


The Home page is divided intro three section and with the index.php page, i could used the include function to call the overview page which will run the hope page on start up using localhost/project where project is the name of the folder where the php files are being saved.

HEADER.php


This section is basically HTML and CSS scripting 


OVERVIEW.php


If you can see the right side of the image above is cut short, but it doesn't affect the code in anyway because it is just a descriptive text

Conclusion:

This is just a simple view for a homepage using PHP and i would appreciate any correction or comments on this project.. Thanks