PHP - solucionado, me falta una cosa.

 
Vista:

solucionado, me falta una cosa.

Publicado por sandra (60 intervenciones) el 20/06/2007 09:54:50
Perfecto, con este codigo me muestra las fotos.

AHORA EL PROBLEMA QUE TENGO ES QUE ME LAS MUESTRA CON EL TAMAÑO QUE TIENEN Y ENTONCES NO SE ME ADAPTAN, QUIERO QUE TODAS TENGAN LA MEDIDA DE 140 * 140 Y NO SE COMO HACERLO LA VERDAD.
GRACIAS

<?php require_once('Connections/conexionjosemaria.php'); ?>
<?php
//php header("Content-type: image/jpeg");
$maxRows_muestraoferta = 6;
$pageNum_muestraoferta = 0;
if (isset($_GET['pageNum_muestraoferta'])) {
$pageNum_muestraoferta = $_GET['pageNum_muestraoferta'];
}
$startRow_muestraoferta = $pageNum_muestraoferta * $maxRows_muestraoferta;

mysql_select_db($database_conexionjosemaria, $conexionjosemaria);
$query_muestraoferta = "SELECT `ref`, `desc`, precio, exist, foto FROM flores";
$query_limit_muestraoferta = sprintf("%s LIMIT %d, %d", $query_muestraoferta, $startRow_muestraoferta, $maxRows_muestraoferta);
$muestraoferta = mysql_query($query_limit_muestraoferta, $conexionjosemaria) or die(mysql_error());
$row_muestraoferta = mysql_fetch_assoc($muestraoferta);

if (isset($_GET['totalRows_muestraoferta'])) {
$totalRows_muestraoferta = $_GET['totalRows_muestraoferta'];
} else {
$all_muestraoferta = mysql_query($query_muestraoferta);
$totalRows_muestraoferta = mysql_num_rows($all_muestraoferta);
}
$totalPages_muestraoferta = ceil($totalRows_muestraoferta/$maxRows_muestraoferta)-1;

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
</head>

<body>
<table border="0" cellpadding="5" cellspacing="0">
<tr>
<td>fotos</td>
</tr>
<?php do { ?>
<tr>
<td><img src="/upload/<?php echo $row_muestraoferta['foto']; ?>" /></td>
</tr>
<?php } while ($row_muestraoferta = mysql_fetch_assoc($muestraoferta)); ?>
</table>
</body>
</html>
<?php
mysql_free_result($muestraoferta);
?>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:solucionado, me falta una cosa.

Publicado por toribio (2 intervenciones) el 20/06/2007 11:45:18
<img src="/upload/<?php echo $row_muestraoferta['foto']; ?>" width="140" height="140" />
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar