diff --git a/index.php b/index.php index 598cb57..d5b6662 100644 --- a/index.php +++ b/index.php @@ -94,6 +94,12 @@ cursor: pointer; } + + @@ -202,11 +208,13 @@ // show content $myfile = fopen("posts.txt", "r") or die("Unable to open file!"); if ($myfile) { + $index = 0; while (($line = fgets($myfile)) !== false) { echo "

" . $line . "

"; echo "" . fgets($myfile) . ""; - echo "
" . fgets($myfile) . "
"; - // + echo ""; + + index++; } fclose($myfile);