Ver Mensaje Individual
  #6 (permalink)  
Antiguo 25/04/2011, 07:08
Avatar de pampa_
pampa_
 
Fecha de Ingreso: mayo-2006
Mensajes: 334
Antigüedad: 18 años, 10 meses
Puntos: 1
Respuesta: galeria imagenes php

Código HTML:
Ver original
  1.     <div id="container">
  2.         <div id="topbar"><img src="images/titulo-informacion2.png"></img></div>
  3.         <div id="marquesina">Listado de Inmuebles</div>
  4.        
  5.         <div id="main">
  6.         <div id="menu-der">

Código PHP:
Ver original
  1. <?php
  2.         $link = mysql_connect("localhost", "root", "secreto");
  3.         mysql_select_db("bda_inmuebles", $link);
  4.        
  5.         $filtro='';
  6.         $tipo=$_POST['tipo'];
  7.         $gestion=$_POST['gestion'];
  8.         $preciomin=$_POST['minimo'];
  9.         $preciomax=$_POST['maximo'];
  10.         $localidad=$_POST['localidad'];
  11.        
  12.         //$result = mysql_query("SELECT tipo,localidad FROM inmuebles", $link);
  13.         //$result = mysql_query("SELECT * FROM inmuebles WHERE tipo='$tipo'", $link);      
  14.         $result = mysql_query("SELECT * FROM inmuebles WHERE $filtro", $link);
  15.        
  16.         // CODIGO PARA BUSCAR SI HAY UN ERROR EN LA CONSULTA
  17.         $error = mysql_error($link);  // $link es la variable de conexión
  18.            
  19.         if ($error!=null)
  20.         {
  21.             print("Ocurrio; el Siguiente Error:\n ".$error);
  22.             exit;
  23.         }
  24.         // FIN DE LA BUSQUEDA DE ERROR
  25.                    
  26.        
  27.        
  28.         echo '<table align="center" border="0" cellpadding="5px" cellspacing="0" width="500">';
  29.  
  30.         $contador =1;
  31.         $num_col=3;
  32.    
  33.         echo "<tr>";
  34.    
  35.         while ($row = mysql_fetch_row($result)){
  36.             $trans=array("&ntilde"=>"ñ"); //funcion para poder mostrar las ñ que en mysql son &ntilde
  37.             $row[4]=strtr($row[4],$trans);
  38.             $row[6]=strtr($row[6],$trans);
  39.             echo '<td align="left">';
  40.             ?>
Código HTML:
Ver original
  1. <a href="javascript:ajaxpage('slimbox2/example.html', 'menu-der');"><?php echo "<img src='$row[5]'></img>";?> </a>


Este seria el codigo de mi index.php y en este ultimo enlace me gustaria llamar a la pagina que contiene el efecto slimbox....
En este enlace esta otro efecto slimbox parecido al que he puesto... es lo mismo practicamente... http://www.digitalia.be/software/slimbox2