Im trying to explode the value of my query to input field so im able to edit them: this what I've got so far ::

$temp = explode(',',$sizes);
                foreach($temp as $size){
                echo "<input type='text' value". $size.">";

please help..

Member Avatar

I'm assuming that you mean the result of your query. As we don't know the content of your $sizes variable, impossible to say if it will work or not.

In addition:


should be:


However, it's not being used in your code, so I don't see the point of it.

I'm assuming this should be:

echo "<input type='text' value='" . $size. "'>";

Notice the equals sign and the addition of single quotes.

yeah I forgot those single qoutes!. :)

thnx for your help Sir diafol :)