styleBunny
Technical User
Hi everybody,
I have a simple table in my database that holds my website content (text), on my page i am running this query to get the text from the database.
"SELECT * FROM `content`"
Is there a way from this point I can iterate through each piece of content, and display them at different locations on the page?
I guess im trying to avoid having to do 3 or more seperate queries. I have in the past used mysql_fetch_array with a while loop, but this will only list all the results. I want to be able to insert one result at the top of the page and other results further down the page.
Cheers,
SB.
I have a simple table in my database that holds my website content (text), on my page i am running this query to get the text from the database.
"SELECT * FROM `content`"
Is there a way from this point I can iterate through each piece of content, and display them at different locations on the page?
I guess im trying to avoid having to do 3 or more seperate queries. I have in the past used mysql_fetch_array with a while loop, but this will only list all the results. I want to be able to insert one result at the top of the page and other results further down the page.
Cheers,
SB.