Store array in DB

Links for php scripts

Moderators: macek, egami, gesf

kiwi
New php-forum User
New php-forum User
Posts: 124
Joined: Sun Feb 29, 2004 6:26 am
Contact:

Store array in DB

Postby kiwi » Tue Sep 21, 2004 10:10 am

i got array name is custom and a table name custom, how can i store array in the table, this array some time have 10 value , some time more than that, i try this code, but i doesn't store in db, how? thanks

$query = "INSERT INTO custom (custom) VALUES (".implode(",",$custom).")";

Return to “PHP Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest

cron