PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi guys, I'm new at php/mysql and im trying to fetch 2 fields of 10 rows of data. And I want to output the first 5 with the 2 fields and then the last 5 with just one field.
So it will look like this for the first 5
New Items in stock..
Product
Description
Product
Description
Then I want to put this for the next 5 products
Also now in stock..
Product
Product
Product
I have a basic script I been trying to work it out on but I have not had any luck. Would anyone be able to help me out or even point me in the direction of some tutorials that shows this.
The way I was trying to do it was well wrong then hehe. I was trying to number it with MSQL_NUM and trying to use if to get it to write out the first 5 then else to write out the next 5.