query("SELECT * FROM `tops_products` ORDER BY `tops_products`.`barcode` ASC");$n = 1;while ($row = mysqli_fetch_array($result)){ $barcode = $row[0]; $title = $row[1]; $price = $row[2]; $first = substr($barcode,0,1); $second = substr($barcode,1,1); $image = $web.$first."/".$second."/".$barcode.".jpg"; if (false!==file($image)) { $imageData = base64_encode(file_get_contents($image)); ?> 30) exit; } else { $image = $web.$first."/".$second."/".$barcode."_1.jpg"; if (false!==file($image)) { $imageData = base64_encode(file_get_contents($image)); ?>
".$title."".$price.""; ?>
30) exit; } else echo "
".$n." ".$title." - ".$image."
"; }}?>
".$title."".$price.""; ?>