forumnz Posted January 1, 2008 Share Posted January 1, 2008 Do I have to have (for example, for a title) many different names like $title, $title2, $title3, or can I just have $title and then have a loop or something to insert, say 50 rows? I would have a form with 50 fields. Hope that makes sense. Thanks. Link to comment https://forums.phpfreaks.com/topic/83927-insert-many-rows/ Share on other sites More sharing options...
revraz Posted January 1, 2008 Share Posted January 1, 2008 Depends, you can reuse a variable name as long as you don't mind losing what was in it before replacing it, but it may be easier to use an array. Link to comment https://forums.phpfreaks.com/topic/83927-insert-many-rows/#findComment-427112 Share on other sites More sharing options...
forumnz Posted January 1, 2008 Author Share Posted January 1, 2008 How do I do that? My form would have an input field with name="title". The field would be there about 20 times. It would be Posted to a script to insert all the rows. I can connect and select db and everything, just inserting more that one row? Sam/ Link to comment https://forums.phpfreaks.com/topic/83927-insert-many-rows/#findComment-427115 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.