Inserting arrays

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mccommunity
Forum Commoner
Posts: 62
Joined: Mon Oct 07, 2002 8:55 am

Inserting arrays

Post by mccommunity »

I have an array that is setup as Key=>Values I am trying to loop through this array adding all the values into a database. How would I do this does anyone have a sample?


Thanks
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Check out [php_man]foreach[/php_man](), and the [php_man]mysql[/php_man] section of the manual. :)
Post Reply