Ver Mensaje Individual
  #4 (permalink)  
Antiguo 24/03/2008, 08:52
Avatar de T4ke0veR
T4ke0veR
 
Fecha de Ingreso: agosto-2007
Ubicación: Quito - Ecuador
Mensajes: 1.720
Antigüedad: 16 años, 8 meses
Puntos: 28
Re: no se muestra la Imagen

es muy extraño sigue mostrando lo mismo creo q mandare las declaraciones a ver si hay alguna falla

Código PHP:
<?php
if (!function_exists("GetSQLValueString")) {
function 
GetSQLValueString($theValue$theType$theDefinedValue ""$theNotDefinedValue ""
{
  
$theValue get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  
$theValue function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch (
$theType) {
    case 
"text":
      
$theValue = ($theValue != "") ? "'" $theValue "'" "NULL";
      break;    
    case 
"long":
    case 
"int":
      
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case 
"double":
      
$theValue = ($theValue != "") ? "'" doubleval($theValue) . "'" "NULL";
      break;
    case 
"date":
      
$theValue = ($theValue != "") ? "'" $theValue "'" "NULL";
      break;
    case 
"defined":
      
$theValue = ($theValue != "") ? $theDefinedValue $theNotDefinedValue;
      break;
  }
  return 
$theValue;
}
}

$colname_Recordset1 "-1";
if (isset(
$_GET['id'])) {
  
$colname_Recordset1 $_GET['id'];
}
mysql_select_db($database_pintor$pintor);
$query_Recordset1 sprintf("SELECT * FROM rrhh WHERE id = %s"GetSQLValueString($colname_Recordset1"int"));
$Recordset1 mysql_query($query_Recordset1$pintor) or die(mysql_error());
$row_Recordset1 mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 mysql_num_rows($Recordset1);
 
                               function 
imagengrande() 

window.open("verimagen.php?imagen=/iamges2/<?=$imagen;?>""""width=400,height=400"); 
}
?>
Código PHP:
 <td colspan="3"><span class="textoTitulos">
          <?php if ($totalRows_Recordset1!=0){ ?> // no se si choca aqui pero = si hay imagen no la muestra
        </span></td>
      </tr>
      <tr>
        <td colspan="3"><img src="images/dp.jpg" width="600" height="30" /></td>
      </tr>
      <tr>
        <td colspan="3">&nbsp;</td>
      </tr>
      <tr>
        <td width="14">&nbsp;</td>
        <td width="430">Nombres:</td>
        <td width="156" rowspan="8"><div align="center"> 
<p> 
<?  
while ($temp mysql_fetch_array($sql))   
{   
if (empty(
$temp["imagen"]) || is_null($temp["imagen"]))   
  { 
$img "images/na.jpg";}   
  else   
  { 
$img $temp["imagen"];}     
}  
echo 
'<img src ="images/$img" border="0"/>'?>
</p> 
</div> 
</td> 
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><?php echo $row_Recordset1['nombres']; ?></td>
        </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        </tr>
      <tr>
        <td>&nbsp;</td>
        <td>Apellidos</td>
        </tr>
      <tr>
        <td>&nbsp;</td>
        <td><?php echo $row_Recordset1['apellidos']; ?></td>
        </tr>
__________________
Diseño gráfico, Web, imagen corporativa, publicidad ...