foto1 foto2 foto3 foto4
foto5 foto6 foto7 foto8
etc...
hasta el momento me lo muestra asi:
foto1
foto2
foto3
foto4
foto5
foto6
foto7
foto8
etc.....
Espero me puedan ayudar el codigo que tengo es el siguiente y gracias!!.
Código PHP:
<table>
<tr>
<td>
<? include ("../coneccion.php");
$_pagi_sql = "SELECT * FROM galeria ORDER BY Id_img DESC ";
$id=$_GET[Id_img];
$_pagi_cuantos = 6;
echo "<table border='2'>";
while($row = mysql_fetch_array($_pagi_result)){
echo"<tr><td>";
$filasDevueltas = mysql_num_rows($_pagi_result);
echo($filasDevueltas);
$foto=$row["img_nombre"];
$id=$row["Id_img"];
echo"<a href='mostrar.php?id=$id'><img src='imagenes/$foto' width='150' height='100'></a>\n";
//for($i=$filasDevueltas; $i<4 ; $i++){
//echo ("</td></tr>");
//}
echo ("</td></tr>");
}
echo ("</table>");?>
</body>
</html>