$res=$data['imagess'];
Are you sure its imagess not images here?
$rest=explode(" ",$res);
Some of the file name includes spaces in it so using space to explode is not a good idea. You can use some specific set of characters like:
$rest=explode("|||",$res); to divide the filenames.
But why would you have multiple images in a single database column. As far as I have understood, you wanted to have multiple images for a single parameter. Try having two database tables: one for all details and other for images only. For example:
Table 1:
id title description
Table 2:
id category-id filename
Here category-id is the id to table 1 used as foreign key.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…