This is such a silly problem I am almost embarassed to ask
If I have an ALTER TABLE STATEMENT AND I need an ENUM field to be filed with an array of values drawn from a txt file what is the correct syntax to use.
$vals = file($txt);
foreach ($vals as $val)
{
str_replace("|", " ", $val);
$val1 ="$val";
"ALTER TABLE change cat cat ENUM($val1)";
}
does'nt work .
Input data in file
'one' , |'two' ,|'three'
please help I feel as if my head is under cover on this