Hey guys.
I created a table with some simple text fields. But one of them is a field populated with a string sparated by comas (,)
Example: "img1.jpg,img2.jpg,img3.jpg"
My idea is to show each img in a different column in an html table.
So, I parse al the rest of the data ok but when I try to use the explode function Im getting nothing.
$screens = explode(",", $sql_table_field[6]);
for ($j=0; $j<$screens.length; $j++){
$screen .= "<img src=\"http://localhost/images/reviews/$screens[$j]\" width=\"100\">";
$t->set_var("SCREENS",$screen);
}
Of course im using some PHP Templates programming so in the html template there is a code {SCREENS} where the stuff should appear.
Well, I hope you can help me. This is driving me nuts.
Sorry for my english, i cant speak it as well as you because Im from Argentina.
Thx in advance.
Topper