Today I am reading from the database in the Product Details field is not a string, with the Echo input page directly parsed into HTML format, so can not go to the Android side to manipulate the string, and then think of the service side hands, the following code, respectively do three things, the first read to the field content, The second replaces the useless string and sets the width of the picture, and the third modifies the target field as a picture.
<?php$cnn=mysqli_connect ("localhost", "root", "Kz5ddksqye", "rooot");//Connection Database $bm= "set names UTF8";//Commodity Id$id=$_get ["id"]; $sql = "select * from ' vi_items ' WHERE ' id ' = $id"; $ccc =mysqli_query ($CNN, $sql);//execute code //Traverse database contents while ($arr = MYSQLI_FETCH_ASSOC ($CCC)) { //Get the required fields in the database $urmes = $arr ["desc"]; Replace the useless string and set the width of the picture $diyic = Str_replace ("Src=/data/upload/site/58fd01e4a1f22.png", "width=100%", $urmes); Modify the Target field for the picture Echo str_replace ("src", "src", $diyic);; }? >