for ($i=1;$i<count($lines);$i+=2)
{
echo nl2br($lines[$i]) . "<br /><br />\n";
for ($i=2;$i<count($lines);$i+=2)
{
echo nl2br($lines[$i]) . "<br /><br />\n";
echo '<a href="'.$_SERVER['REQUEST_URI'].'">Delete</a>' ;
echo '<a href="commit.php?edit" name="edit">edit</a>'. "<br /><br />\n";
}
}
almost works.
I want it to look like this:
Product A
Description A
links
Product B
Description B
links
Product C
Descritpion C
links
etc
It gives me
Product A
Description A
links
Description B
links
Description C
links
etc
so I'm missig Product names from 3 line on.