Thanks for your help guys. I finally figured out that which I needed to know. What I wasn't understanding is the way an array is setup and how you take data from it. If you guys are curious, this is what I've got to display what I wanted:
<body> <table width="100%" border="0">
<?
$ot_load = file("OT.dat");
for ($index=0; $index < count($ot_load); $index++) {
$text = explode(":", chop($ot_load[$index]));
echo("<tr><td>" . $text[0] . "<br /></td>");
echo("<td>" . $text[1] . "<br /></td>");
echo("<td>" . $text[2] . "<br /></td>");
echo("<td>" . $text[3] . "<br /></td></tr>");
}
?>
</table>
</html>
Now what I need to do is write a script to add these to my database as they're read.
Code:
<html> <body> <table width="100%" border="0">
<?
$ot_load = file("OT.dat");
for ($index=0; $index < count($ot_load); $index++) {
$text = explode(":", chop($ot_load[$index]));
echo("<tr><td>" . $text[0] . "<br /></td>");
echo("<td>" . $text[1] . "<br /></td>");
echo("<td>" . $text[2] . "<br /></td>");
echo("<td>" . $text[3] . "<br /></td></tr>");
}
?>
</table>
</html>
Now what I need to do is write a script to add these to my database as they're read.