PDA

View Full Version : Questions:



STAUFFi
5th October 2013, 12:35
Hello, I'm writing after a long time inactive times back.
I have a question.
How read text out of a file and then paste it into the correct column?
(These are the columns)
468
This is my script

<?php
$datei=fopen("spiele-b.txt","r+");
while(!feof($datei))
{
$zeile = fgets($datei,1000);
echo $zeile."<br>";
}
fclose($datei);
?>
The first column of the first set no longer works at "home" but afterwards.
It should come at the end of it as out.
(In the last image, the clubs and days are entered manually by "<td> </ td>". )
469

Big thanks for help after
Greets STAUFFi :)

kung foo man
5th October 2013, 12:56
Well, you can serialize your data in JSON e.g. and save/load that, but this is exactly what databases are good for.

STAUFFi
5th October 2013, 14:48
The sentences in the text file that can be located to vary the the simple php script reads out the individual variable?