that's good. but not...
for each link replaced it need to make a db query to get "news-description". do u think its normal, me not. brrrr
This doesn't work in that way which will make bunch of DB Queries to database. Here is how it works :
1. Find How many News links are there on the page.
And it will combine it to a single/1 query :
dbquery("SELECT news_subject FROM ".DB_NEWS." WHERE news_id IN(1,2,3) " )
And this is all done before the page loads. Hence, time efficient and memory efficient
hm, that's more better, but anyway incorrect