i can select the data from database using top like that:
select top 5 title, news_date where active='1'
but i cann't write the data to the web page?
i tried to use
while ($row=mysql_fetch_array($result)) {
echo ...
...
...
}
but it didn't work. it says
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource
what must i do?