Gossamer Forum
Home : General : Internet Technologies :

Re: [Andy] Breaking Up a Line using PHP

Quote Reply
Re: [Andy] Breaking Up a Line using PHP In reply to
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:

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.
Subject Author Views Date
Thread Breaking Up a Line using PHP JoFrRi 21271 Aug 23, 2003, 6:03 PM
Thread Re: [JoFrRi] Breaking Up a Line using PHP
Mark Badolato 20794 Aug 23, 2003, 10:59 PM
Thread Re: [Mark Badolato] Breaking Up a Line using PHP
Andy 20792 Aug 24, 2003, 1:36 AM
Thread Re: [Andy] Breaking Up a Line using PHP
Mark Badolato 20852 Aug 24, 2003, 10:06 AM
Thread Re: [Mark Badolato] Breaking Up a Line using PHP
Andy 20951 Aug 24, 2003, 11:25 PM
Thread Re: [Andy] Breaking Up a Line using PHP
JoFrRi 20909 Aug 25, 2003, 1:17 PM
Thread Re: [JoFrRi] Breaking Up a Line using PHP
Andy 20817 Aug 25, 2003, 11:38 PM
Thread Re: [Andy] Breaking Up a Line using PHP
Mark Badolato 20767 Aug 26, 2003, 12:32 AM
Thread Re: [Mark Badolato] Breaking Up a Line using PHP
Andy 20781 Aug 26, 2003, 12:34 AM
Thread Re: [Andy] Breaking Up a Line using PHP
Mark Badolato 20770 Aug 26, 2003, 12:36 AM
Thread Re: [Mark Badolato] Breaking Up a Line using PHP
Andy 20717 Aug 26, 2003, 12:42 AM
Thread Re: [Andy] Breaking Up a Line using PHP
Mark Badolato 20792 Aug 26, 2003, 8:13 AM
Post Re: [Mark Badolato] Breaking Up a Line using PHP
Andy 20632 Aug 26, 2003, 8:14 AM
Thread Re: [Mark Badolato] Breaking Up a Line using PHP
hennagaijin 20679 Aug 26, 2003, 8:41 AM
Thread Re: [hennagaijin] Breaking Up a Line using PHP
JoFrRi 20636 Aug 26, 2003, 3:01 PM
Thread Re: [JoFrRi] Breaking Up a Line using PHP
hennagaijin 20717 Aug 26, 2003, 3:10 PM
Thread Re: [hennagaijin] Breaking Up a Line using PHP
JoFrRi 20750 Aug 26, 2003, 3:36 PM
Thread Re: [JoFrRi] Breaking Up a Line using PHP
hennagaijin 20857 Aug 27, 2003, 11:12 AM
Thread Re: [hennagaijin] Breaking Up a Line using PHP
Andy 20758 Aug 27, 2003, 11:19 AM
Post Re: [Andy] Breaking Up a Line using PHP
JoFrRi 20607 Aug 27, 2003, 6:17 PM
Post Re: [Andy] Breaking Up a Line using PHP
JoFrRi 20719 Aug 25, 2003, 3:22 PM