troubleshooting Question

PHP -> SQL result to a txt file

Avatar of AUCKLANDIT
AUCKLANDITFlag for New Zealand asked on
PHPMySQL Server
4 Comments1 Solution230 ViewsLast Modified:
Hello,

I need to save a MYSQL result to a text file, I can kind of get it to work using $fd=fopen($filename,"w");
but I need input extra words and spacing etc into the text result into the text file.

The data in the table is: (CAPITALS is the row name, other is the data)

USERNAME: blabla
DOB: 05/05/2000
PHONE: 0303030
ADDRESS 1: 33 Tree Lane
ADDRESS 2: Bushland
STATE: CA


Ideally the saved result would look like this,

[blabla]
Age today: 10
Phone: 0303030
Address: 33 Tree Lane
                Bushland
                CA

Any idea's?
ASKER CERTIFIED SOLUTION
Ludwig Diehl
Project Manager

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros