I am successfully reading and displaying a .txt file with 3 variables, lets say for example name, age and comments.
When the file is written, 1 name, 1 age and 1 comment gets written on a line. Any further additions get added as a new line.
When this gets read in my php page, it displays the info but all on the same line.
I really want to have an image box with name and age underneath and then comments to the right hand side. Also, added css to have comments in speech marks (which would be a small image) would be perfect.
Any help?
This code reads and displays the file:
<?php
$myFile = "location.txt";
$fh = fopen($myFile, 'r');
$theData = fgets($fh);
fclose($fh);
echo $theData;
?>