Jump to content

Insert array help.


dano2000

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.