Código PHP:
<?php
$data = "connect.php";
include($data);
$sql = mysqli_query($con, "SELECT * FROM fotodes ORDER BY numero_orden ASC");
echo "<div class='item active'>";
while($re = mysqli_fetch_array($sql)){
echo "<a href='detalle.php?id=" .$re['numero_id']. "'><img class='img-responsive img-full' src='admin/imagenes/" .$re['foto']. "' alt=''></a>";
echo "</div>";
echo "<div class='item'>";
} echo "</div>";
?>
Saludos