jwk811 Posted December 31, 2006 Share Posted December 31, 2006 i think what i need to use for this is a while loop but i dont understand how they work that good... what im trying to do is run a script depending on how many times needed with each script containing different information... that might be hard to understand so let me explain what im doing---------I have an order form on my site where the customer puts in how many items they want and that many tables comes up to put in the id of that product... then when they click "next" to go to the next page it will show each item and its description.. it got all that information from the db in the row where the item id matched.. and on that page each item and its description etc. will need to be separated from the other items like that.. i tried to make this as easy to understand as possible so if anyone could help me out on this it would be great! thanks! Link to comment https://forums.phpfreaks.com/topic/32364-while/ Share on other sites More sharing options...
simcoweb Posted December 31, 2006 Share Posted December 31, 2006 Have you written the code for the db query yet that pulls the row based upon the id? If so, please post it. Link to comment https://forums.phpfreaks.com/topic/32364-while/#findComment-150294 Share on other sites More sharing options...
fert Posted December 31, 2006 Share Posted December 31, 2006 I think a for loop would be better Link to comment https://forums.phpfreaks.com/topic/32364-while/#findComment-150296 Share on other sites More sharing options...
jwk811 Posted December 31, 2006 Author Share Posted December 31, 2006 yeah i think thats it.. how would i be able to do this with a for loop? Link to comment https://forums.phpfreaks.com/topic/32364-while/#findComment-150300 Share on other sites More sharing options...
jwk811 Posted December 31, 2006 Author Share Posted December 31, 2006 anyone else? Link to comment https://forums.phpfreaks.com/topic/32364-while/#findComment-150422 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.