Jump to content

[SOLVED] looping through arrays


wrathican

Recommended Posts

i have two arrays that look like this:

$name1[0][value]

$name2[0][value2]

 

typical [key][value] right?

 

now what i need to do is use the values of both arrays in a mysql query.

 

how do i loop through the arrays using the values in the query?

 

so the query would look something like this:

update table set col='$name1 value' where col='$name2 value'

 

i hope that makes sense.

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/115900-solved-looping-through-arrays/
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.