画像のデータベース テーブルからデータをフェッチします。画像列には、1 つの製品に対して 8 つの異なるサイズの画像リンクがあり、各画像リンクには、100x100、200x200、500x500 などのサイズの詳細があります。
すべての画像はカンマで指定します Like:-
http://example.com/images/data/baby-care-100x100.jpg、
http://example.com/images/data/baby-care-200x200.jpg、
もっと.....
このすべての画像リンクから、200x200 に img src のリンクが含まれていることを確認する必要があります
$productImage = array_key_exists('200x200', '$imageUrlStr')? $imageUrlStr['200x200']:'';
完全なコード
$result = $mysqli->query("SELECT * FROM store where store= 'deals' AND bestOffer= '1' AND inStock= 'true' ");
while ($rows = $result->fetch_assoc()) {
$store = $rows["store"];
$productId = $rows["productId"];
$title = $rows["title"];
$description = $rows["description"];
$imageUrlStr = $rows["imageUrlStr"];
$productNewImage = array_key_exists('200x200', $imageUrlStr) ? $imageUrlStr['200x200'] : '';