Board index   FAQ   Search  
Register  Login
Board index PHP PHP Scripts

Store array in DB

Links for php scripts

Moderators: macek, egami, gesf

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).")";
kiwi
New php-forum User
New php-forum User
 
Posts: 124
Joined: Sun Feb 29, 2004 6:26 am

Return to PHP Scripts

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron