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)
ADDRESS 1: 33 Tree Lane
ADDRESS 2: Bushland
Ideally the saved result would look like this,
Age today: 10
Address: 33 Tree Lane