Current location: Hot Scripts Forums » Programming Languages » PHP » MYSQL and Arrays or Commas


MYSQL and Arrays or Commas

Reply
  #1 (permalink)  
Old 08-19-04, 09:44 AM
alexku alexku is offline
Newbie Coder
 
Join Date: Aug 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
MYSQL and Arrays or Commas

I want to make a script that can store an array in one mysql cell. I have tried just putting the array into the cell but that only gives me the text array when I try to select the array. Can I put "value_one,value_two,value_three" into a cell and then when I select it phrase it into an array?

-Alex
Reply With Quote
  #2 (permalink)  
Old 08-19-04, 10:34 AM
uprightdog uprightdog is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Try using serialize:
http://uk2.php.net/serialize/
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 04:22 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.