I found the link to the zope page about how you can use
echo|print <<< EOF
text
EOF;
I used it and it works, but when I put it in a loop like
while($myrow = mysql_fetch_array($result))
{
echo <<< EOF
1
EOF;
}
This should in my mind print out the number 1 once for each record. but I get
"Parse error: parse error in /home2/campmeriwether/testing.php on line 33"
line 33 is the last line of my script all it has is ?>
the code works fine if I replace the echo with ?> and the EOF; with <? but I don't want to do it that way if I don't have to.
Anyone else had this problem?
thanks