<html>
<head>
<title>EdMash</title
</head>
<style>
*{
margin:0;
padding:0;
box-sizing:border-box;
}
.contenedor{
width:900px;
text-align:center;
position:relative;
margin:0 auto;
background-color:#DBD8D8;
}
.imagenfija{
width:800px;
height:400px;
margin:0 auto;
background-image:url(../fondos/fondo.jpg);
padding:20px;
}
article{
width:80px;
height:150px;
margin-right:170px;
margin-left:130px;
float:left;
}
</style>
<script>
function cambiarimg(){
}
</script>
<body bgcolor="black">
<div class="contenedor">
<header>
<a href="index.html">Inicio</a> -
<a href="nosotros.html">Nosotros</a> -
<a href="servicios.html">Servicios</a> -
<a href="contactanos.html">Contactanos</a> <br>Copyright 2011 ¿Tienes Problemas?
Mandanos un mensaje
<a href="mailto:info@hotmail.com">EdMash@hotmail.com</a>
</center>
</header>
<section class="imagenfija">
<?php
if(isset($_GET['num'])){
$imagen1=$_GET['num']+1;
$imagen2=$_GET['num']+2;
}else{
$imagen1=1;
$imagen2=2;
}
require_once ("../conexion.php");
$selec_img=mysqli_query($link,"SELECT * FROM imagenes WHERE id_imagen='".$imagen1."'");
while($i=mysqli_fetch_array($selec_img)){
?>
<article><a href="prueba.php?num=<?php echo $imagen1;?>"><?php if($i['id_imagen']==$imagen1){ echo '<img src="../'.$i['imagen'].'" width="80px" height="150px;">';}?> </a></article>
<?php }?>
<?php
$selec_img=mysqli_query($link,"SELECT * FROM imagenes WHERE id_imagen='".$imagen2."'");
while($i=mysqli_fetch_array($selec_img)){
?>
<article><a href="prueba.php?num=<?php echo $imagen2;?>"><?php if($i['id_imagen']==$imagen2){ echo '<img src="../'.$i['imagen'].'" width="80px" height="150px;">';}?> </a></article>
<?php }?>
</section>
<footer> pie de pagina</footer>
</div>
</body>
</html>