Please help!! I've hit a wall and can't figure this out by myself!
I have thousands of entries stored in a mysql database. They are formatted so I could use them as an array via PHP
to be exact.. this is what the columns include in my database
024,089,137,266,317,365,467,520,585,646,718,782,826,936,980
020,120,201,259,307,343,439,474,571,661,685,779,854,947,921
001,068,166,233,335,353,437,493,596,667,722,774,863,902,982
061,129,166,244,281,391,461,502,538,634,678,766,857,898,993
and so on.. each line has a set of values ranging from 10 to 20.. each value seperated by a comma.. just like in an array
now.. the odd thing is this
if I create a new array like this :
$TEST = array (034,132,189,217,302,379,440,489,564,617,677,788,836,925,943);
then if I do a echo $TEST[0]; it'll output 034
but if I do it this way
$TEST2 = "034,132,189,217,302,379,440,489,564,617,677,788,836,925,943";
and then
$TEST = array($TEST2);
and finally
echo $TEST[0];
then it's going to output the entire thing
034,132,189,217,302,379,440,489,564,617,677,788,836,925,943
So this is my problem.. I need a way to store my arrays in a variable from my sql query so that it's usable as an array with each comma seperating the values.
I hope y'all can help me with that.. or else i'm in deep deep trouble.