I still need some help here. this code seems to do what I need, but it is displaying stuff that I dont know where its coming from
<?php
$file_string = file_get_contents("admin/data.dat");
$rows = explode("\r\n", $file_string); //if this doesn't work, try \r\n or just \r
unset($rows[0]);
foreach($rows as $value){
$vars = explode("|", $value);
echo "<b><i>Venue</i></b><br>";
echo "<b>".$vars[0]."</b><br>";
echo $vars[1]."<br>";
echo $vars[2]." ".$vars[3]."<br>";
echo $vars[4]." ".$vars[4]."<br>";
echo "<hr>";
}
?>
Here is the out put on my webpage from the dat file results. in the dat file there are 2 entries but as you can see it has the extra at top and bottom as if there where entries made without data.
Venue
Venue
My House
123 some address
2009-05-15 12:00pm
2009-05-22 2009-05-22
Venue
My House
123 some address
2009-05-21 12:00pm
2009-05-22 2009-05-22
Venue
I also tried the other excample but it makes a table which I dont want. this is displayed in a div on the side of a webpage that has a width of 200px so the above looks ok as is but it just has the extra empty looking areas