Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/02/2005, 14:18
byzard
 
Fecha de Ingreso: agosto-2003
Ubicación: santiago, chile
Mensajes: 303
Antigüedad: 20 años, 8 meses
Puntos: 0
ayuda...sobre <a href... mysql, click foto y se abra en otra parte...

saludos...
Antes queria darle las gracias a todos los que me han ayudado en este foro, y no solo a mi, sino que tambien a todos los que ayudan, ya que de otros post tambien he encontrado solucion para x problema.

ahora sobre mi problem...
aca esta la pagina activa>
http://www.ctk.cl/byzard/jd/



como veran quiero hacer que al darle click sobre la imagen esta aparesca en mayor tamaño en el rigth.php.

me podrian dar una manito...
aca esta el codigo actual por si habria que colocar algun ciclo para que el click concuerde con la imagen

thumb.php
Código:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style></head>

<body>
  <?php
	include("conec.php");
	$link=Conectarse();
	$result=mysql_query("SELECT * FROM jd",$link);
	?>
	
<table width="389" border="0" cellpadding="0" cellspacing="0" background="images/pink_line_bg.gif">
  <tr>
    <td width="52">&nbsp;</td>
    <td colspan="5"><img src="images/accesories.gif" width="280" height="23"></td>
     </tr>
  <tr>
    <td width="52">&nbsp;</td>
    <td height="15" colspan="5">&nbsp;</td>
  </tr>  
  <tr>
    <td width="52">&nbsp;</td>
    <td><table width="65" height="55" border="0" cellpadding="0" cellspacing="0" background="images/small_box_bg.gif"><tr>
	  <?
	  $cols = 4; //aqui defines numero de columas.
$num=mysql_num_rows($result);

$filas = floor($num / $cols); //con esto saca el resultado entero de la division.
?>
<table width="65" height="55" border="2" cellpadding="4" cellspacing="0">
<?
for ($i = 0; $i <= $filas; $i++)

{
echo "<tr>";
for ($j=0; $j < $cols ; $j++)
{
$row=mysql_fetch_array($result);
if ($row["foto"] == "") //aqui estoy suponiendo que el campo foto es un texto.
{
echo "<td>&nbsp</td>";  //esto es para que si la division no es entera los ultimos cuadrados de tu tabla donde muestras als fotos se rellenen con "nada".
}
else
{
?>

</div>
<TD><div align="center"><a href="http://www.yahoo.com"><? echo "<img src=".$row['foto']." height=55 width=62 border=0 >"; ?><BR>
<font face="Geneva, Arial, Helvetica, sans-serif" size="1"> <? echo $row["nombre"]; ?></a></div></TD><div align="center">
  <?
} //end del else
} //end del for con $j
echo "</tr>";

} //end del for con $i.
echo "</table>";
	mysql_close($link);
 ?>	  
</table>

</body>
</html>
mas info>
tabla:jd(id,nombre,detalle,foto"aca estoy guardando el link de las fotos")

creo que he dado suficiente informacion para que la ayuda sea mas facil

gracias , nos vemos

Última edición por byzard; 12/02/2005 a las 14:20