Hi,
I need someone who has some experience outputting data to CSV from PHP. I am trying to output some fields that need to be enclosed in quote marks but it is coming out with triple quotes or it's coming out with double spaces.
The code I'm using is this:
<?
$reference = "\"this is the reference\""; // quotes need to be output in csv, e.g. "this is the reference"
$vessel = "\"this is the vessel\""; // same as above
$other = "No quotes needed"; // no quotes needed, would output as No quotes needed
$list = array (
array($reference,$vessel,$other),);
$fp = fopen('[login to view URL]', 'w');
foreach ($list as $fields) {
fputcsv($fp, $fields);
}
fclose($fp);
?>
This outputs: """this is the reference""","""this is the vessel""","No quotes needed"
If i change the fputcsv line to fputcsv($fp, $fields, ',', ' ');
Then it outputs double spaces between words like this: "this is the reference" , "this is the vessel" , No quotes needed
I need the code to make it output like this:
"this is the reference","this is the vessel",No quotes needed
Hi! My maximum project is similar to your project,please check my portfolio and my projects , Kindly give me chance for work really very interested for this project,
Waiting for your reply. Thanks
Simon.
Dear Sir,
Able to start right now.
I have more than 2+ years experience in jquery,ajax,html,css,php, paypal integration and web based cms and frameworks like joomla,codegintter etc.
I read all your description and know exactly what is needed to do and within timeline.
I hope I am able to help you and I am waiting for your reply.
Regards,
bdphpguru
Hello Sir,
I'm 5 years experience in PHP and I'm interested in this job. I'm available to do this task right now.
I've also worked with You before in one project.
Give me one opportunity to work in Your project.
Looking forward to hear from You.
Thanks,
NOTE:- PLEASE DON'T AWARD ME BEFORE DISCUSSION
Hello,
I am akil khatri with my 25+ member team with limited skills and unlimited ideas in Game Development|iPhone|Android|Mobile App Development|PHP|Joomla|Wordpress|Javascript|Java| and |.Net|3D Animation|3D Max| within 5+ year experience and i give my 100% to my work and my past work show my ideas creativity and quality and client satisfaction which is my first responsibility and my aim is highest return of my client investment which will show my work and help to increase your business and i feel success when i do job on deadline..
Thanks &Regards,
Akil Khatri