
-----------------------------------
Homer_simpson
Sun Sep 14, 2003 12:25 pm

array and database
-----------------------------------
is it possible to have an array of text as a field in your database?

-----------------------------------
rizzix
Sun Sep 14, 2003 12:35 pm


-----------------------------------
ur trying to store a complex datatype. if ur database supports it you can. i know oracle does. not sure of mysql. anyhow just convert that array of text to a single string, then store that string. that will work anyhow.

-----------------------------------
Homer_simpson
Sun Sep 14, 2003 12:40 pm


-----------------------------------
well i'll just do this:
Use a text field... and put all my texts there and separate them with a special character like Ãž then use this function to break it down into an array:
function analyze($ass){
$parr=array();
$tmpstr="";
$arrc=0;
for($i=0;$i