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

No comments:

Post a Comment