Create CSV file from database

Closed Posted Aug 2, 2012 Paid on delivery
Closed Paid on delivery

Requirement: A script that generate a downloadable CSV file containing a list of contacts along with the person (resident) they are associated with and the type of relationship to that person (resident). This information is stored in PODS tables in a mySQL database. The script should be written in PHP and runnable from a Wordpress page.

The CSV file should contain the following columns:

From wp_pod_tbl_contact:

name

date_of_birth

mobile_phone_number

email

next_of_kin

From wp_pod_tbl_relationship_to_resident:

name

From wp_pod_tbl_resident:

name

inactive

From wp_pod_tbl_care_home:

name

User interface: The CSV file will be created by selecting a menu option from a Wordpress website and then clicking a download button on a form. No other form fields are required. The file should be generated and presented to the user for download to their browser.

Coding: The script should be written in PHP and should use the following PODS api methods for database access:

findRecords() - [login to view URL]

fetchRecords() - [login to view URL]

get_field() - [login to view URL]

The script should only permit authorised users to run it. The following security check should be included at the start of the script:

global $gcUser

gc_user();

$userRole=$gcUser['role'];

if ( $userRole != 'Group Manager' ) die() ;

Tables:

wp_pod_tbl_contact (a table of friends and family of residents)

wp_pod_tbl_relationship_to_resident (the type of link between contacts and residents, eg son, daughter, brother, friend, etc)

wp_pod_tbl_resident (a table of people staying in a care home)

wp_pod_tbl_care_home (a table of care homes)

Skills needed for this task:

Wordpress

PODS CMS Framework plugin

PHP

PHP WordPress

Project ID: #2370654

About the project

14 proposals Remote project Active Sep 8, 2012

14 freelancers are bidding on average £136 for this job

ahtsolutions

We are interested in your projects. Website, mobile apps development are our range projects. Please check PMB for our profile & portfolio. Thanks a lot! ArrowHiTech Jsc!

£150 GBP in 4 days
(460 Reviews)
8.8
toinnisfree

pls chk pmb

£200 GBP in 4 days
(775 Reviews)
8.3
rakhon

Hi, I already have half of your script...

£80 GBP in 7 days
(25 Reviews)
6.0
pablotorres

I can do it!

£40 GBP in 15 days
(134 Reviews)
6.0
pixecs

Dear sir, i can help you with this project. I have over 6 years of experience with Html + Css + JavaScript and over 2 with Php and jQuery.

£50 GBP in 7 days
(47 Reviews)
5.1
naranili

Please see my message at the PMB

£50 GBP in 3 days
(38 Reviews)
5.3
GoldenSoft86

Hello Sir. PHP Expert here. I can do it quickly. Best regards. Thanks.

£150 GBP in 5 days
(6 Reviews)
3.5
bestpro126

Dear sir. I am a skilful expert in web domain. I have been working in this domain over 7 years, and have many experience. My coding ability will provide good result to you. Thanks.

£30 GBP in 3 days
(13 Reviews)
3.4
manimaran1048

Hi There, We are very much interested to work in your project. We have extensive experience in wordpress. Check message box for samples. regards Mani

£240 GBP in 20 days
(0 Reviews)
0.0
ashwindparmar

Hi, see my pm.

£250 GBP in 10 days
(0 Reviews)
0.0
aritmukherjee

I'm ready to start.

£200 GBP in 6 days
(0 Reviews)
0.0
reformconsulting

Dear Sir, Greetings! We are Reform Consulting with 5 years of experience under our belt. We are really interested to work on your project. Please see PM. Thank you. Regards, RCPL.

£150 GBP in 7 days
(3 Reviews)
4.4
mizanurrahaman

Please check our private message..

£180 GBP in 6 days
(0 Reviews)
0.0