Jump to content


Have multiple SEPERATE values in one field?

  • Please log in to reply
1 reply to this topic

#1 elis

  • Members
  • PipPipPip
  • Advanced Member
  • 149 posts

Posted 28 September 2006 - 07:50 PM

Is there anyway to have multiple values in one field, and what would the seperator be?
My Mysql table that I'm referencing is:
what I need is to be able to store more than one value in the same field on the same row, but be able to call it indvidually.
I'm not even sure if this is possible

currently this is my php code for the above table:
elseif ($userpenname ==''.$cresult[blocked].'')
		$output.="<br><center><font color=red>.MESSAGE1.</center></font>";

#2 acdx

  • Members
  • PipPipPip
  • Advanced Member
  • 40 posts

Posted 28 September 2006 - 07:55 PM

You could store a serialize()d php array as a string in the database, but then you would have to do most of the work in PHP anyway. Heck, you could just as well store a pipe-separated string of values in the db and explode the string in php.






























































































































































































































































































































































































































































































































































































































































































































































































































































































































0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users