Results 1 to 7 of 7
Thread: How to add an array in mySQL?
Oct 14, 2001, 12:07 #1
How to add an array in mySQL?
I have built an array and I need to store this array of values (mainly strings) into a mySQL database. I'm using phpMyAdmin so my first question is, what VALUE should I set that field to? Should it be a TEXT field to hold the array?
And secondly, how do I INSERT this array into the database.
$values = "'$alias','$pasword','$name','$lastname','$email',0,0,'$gender','$birthday','$occupation','$address','$city',$stateid,$countryid,$incomeid,'$zipcode'::";
How do I INSERT $values into my info field in TEMPREG table?
Will it just be a simple INSERT command? And if so, will the info field hold an array of values, or a string separated by commas, or what? I'm confused!