The implode function works... but not exactly as needed. I'm trying to retrieve 3 specific bits of information. news_name, news_id, news_description. When i use the implode function I can only assign one variable and have it implode one bit of information. To make it easier to understand this is what I want it to look like when complete for the output.
<tr>
<td>$news_name</td><td>$news_id</td><td>$news_description</td>
</tr>
So it'd display the following bits of info on the output
Joe 1 This is my piece of writing
John 2 I don't like writing
Jerry 3 Wow I can't believe I did this
Jose 4 WEEEE!
Currently it'll display
JoeJohnjerryJose 1234 ect.
Basically I want to use a little simple html to seperate everything a bit and for me to only have to call upon a few variables in my templates in order to complete this process.
With the implode function I can't necessarily do that because if I call upon something like $news_name it will loop all the $news_names that I have selected. And thus on the output will look horribly ugly. Is there any function i can use so I could like insert this html and it'd select those 3... then loop again and keep looping like the implode function did until the while statement is over?
|