wp json feed 2

Avg Bid (USD)
Project Budget (USD)
$45 - $50

Project Description:
2 parts to this job

1) read db config details from the WP config file
you can see in JSON/getjson.php that we define the db connection paramaeters in that script - i need you to change it so as we are pulling the db connection parameters are taken from wp-config.php
[i will supply these files]

2) there is existing items pulled in via a json feed on to category.html

a) we need to take the category parameter and put it in here : http://screencast.com/t/vlE1uRTlSNQ (we may need to pass in the category title also or inetgrate the category title into the feed but ill let you know this tmow)
b) if no data or there is a connection issue then display a message - "data currently not available - please try again" and also an animated gif loading for when it is loading
c) on the index.html the data is hardcoded - please pull it from here. http://www.cmsdude.com/json/testfront.php you can see this testfront.php in the attached zip for reference. (and apply changes in b) above to this page also)

(for the 3 sections 'bestoftheweb', 'latestnews', 'offers' you need to ensure that they will work if there is one entry or more than one)

Skills required:
Graphic Design, HTML, PHP, Website Design
About the employer:
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.

$ 50
in 2 days
Hire DrTech76
$ 45
in 0 days
$ 51
in 1 days
$ 52
in 1 days
$ 45
in 1 days
Hire mediatro
$ 52
in 3 days