connect_error) { die("Connection failed: " . $conn->connect_error); } mysqli_set_charset($conn,"utf8"); $sql = "SELECT DISTINCT title,image_url from companies limit 14;"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { $addr = explode(",", strip_tags($row["address"])); echo " "; //$result1 = $conn->query($qq); //echo urldecode($row["deliveras_link"]); ?> query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { $addr = explode(",", strip_tags($row["address"])); echo " "; //$result1 = $conn->query($qq); //echo urldecode($row["deliveras_link"]); ?> close(); ?>