Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/01/2008, 19:47
Okiro
 
Fecha de Ingreso: mayo-2005
Mensajes: 51
Antigüedad: 19 años
Puntos: 0
Re: Foto en una Ficha Web.

Y este seria el archivo que mostraria la parte de la ficha que tendría que contener la FOTO.:



Código PHP:
<?php require_once('Connections/--------------------.php'); ?>
<?php
$maxRows_PRESENTACION 
10;
$pageNum_PRESENTACION 0;
if (isset(
$_GET['pageNum_PRESENTACION'])) {
  
$pageNum_PRESENTACION $_GET['pageNum_PRESENTACION'];
}
$startRow_PRESENTACION $pageNum_PRESENTACION $maxRows_PRESENTACION;

mysql_select_db($database_enfercom_buscar$enfercom_buscar);
$query_PRESENTACION "SELECT id, presentacionW, titulacionW, publicacionesW, contactaW FROM usuarios";
$query_limit_PRESENTACION sprintf("%s LIMIT %d, %d"$query_PRESENTACION$startRow_PRESENTACION$maxRows_PRESENTACION);
$PRESENTACION mysql_query($query_limit_PRESENTACION$enfercom_buscar) or die(mysql_error());
$row_PRESENTACION mysql_fetch_assoc($PRESENTACION);

if (isset(
$_GET['totalRows_PRESENTACION'])) {
  
$totalRows_PRESENTACION $_GET['totalRows_PRESENTACION'];
} else {
  
$all_PRESENTACION mysql_query($query_PRESENTACION);
  
$totalRows_PRESENTACION mysql_num_rows($all_PRESENTACION);
}
$totalPages_PRESENTACION ceil($totalRows_PRESENTACION/$maxRows_PRESENTACION)-1;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
    background-color: #cad4e0;
}
-->
</style>
<link href="css/estilo_enferdep.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="749" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="763"><img src="imagenes/menu-web1.jpg" width="749" height="124" border="0" usemap="#Map">
      <map name="Map">
        <area shape="rect" coords="204,91,306,118" href="presentacionW.php">
        <area shape="rect" coords="345,90,444,117" href="titulacionW.php">
        <area shape="rect" coords="480,93,592,118" href="publicacionesW.php">
        <area shape="rect" coords="622,91,722,117" href="contactaW.php">
      </map></td>
  </tr>
  <tr>
    <td valign="top" bgcolor="#FFFFFF"><p><img src="imagenes/menu-web3.jpg" width="749" height="4"></p>
      <table width="615" height="164" border="0" align="center" class="punteado">
        <tr>
          <td width="111" height="84" valign="top">aqui iria la foto!!! </td>
          <td width="10" valign="top">&nbsp;</td>
          <td width="472" valign="top"><div align="justify">
            <table width="481" height="131" border="0">
              <?php do { ?>
              <tr>
                <td valign="top"><?php echo nl2br($row_PRESENTACION['presentacionW']); ?></td>
                </tr>
              <?php } while ($row_PRESENTACION mysql_fetch_assoc($PRESENTACION)); ?>
            </table>
          </div></td>
        </tr>
      </table>      
    <p>&nbsp;</p></td>
  </tr>
  <tr>
    <td><img src="imagenes/menu-web2.jpg" width="749" height="74"></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>
<?php
mysql_free_result
($PRESENTACION);
?>