formating output
| From: | george | Date: | Wed, 28 Feb 2001 15:04:28 +0000 |
| Subject: | formating output | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-42007@lists.php.net to get a copy of this message | ||
I am developing a site which will have a web based admin panel, just now
you can alter the scrolling headlines through the panel.
But I want to be able to let the user modify, delete and create new
headline, this isnt proble but i dong know how to format the output.
What i want is for it to dispaly the headlines that are in the table be it
2 or 5 how do i take info from a table and get it to echo the code as many
times as needed(dependingon the headlines in the table) so the code would be
like this
but how do i also stop it from displaying the same fields ie exact same
headline link etc. and how do i get this so that 3 news stories = 3 lines
code
myScroller1.addItem("<b><? echo "$headline" ; ?><a href='<?
echo
"$newslink"; ?>'> latest news news</a>, news news news</b>");
Hope you understand it, I dont think i do.
George