dano2000 Posted March 17, 2010 Share Posted March 17, 2010 New to php and would like a pointer, I have a form that sends me a variable that is an array with userid's The variable $userids value is = 3,4,7,8 The table I want to "insert into" has a layout: id, var1, var2, var3, userid <--- this is where I want to use the array to INSERT one row for each value What would or how would the syntax be to use the array to INSERT INTO table for each of $userids? Kinda lost on this one and shouldn't be. Proly gonna feel dumb after some responses.... Thanks for any advice Link to comment https://forums.phpfreaks.com/topic/195587-insert-array-help/ Share on other sites More sharing options...
dano2000 Posted March 17, 2010 Author Share Posted March 17, 2010 I figured this out. Thanks. Link to comment https://forums.phpfreaks.com/topic/195587-insert-array-help/#findComment-1027828 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.