y esta es la otra pagina donde se ve la imagen.:
Código PHP:
Ver original<?php require_once('Connections/hoysale.php'); ?>
<?php
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
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;
}
}
$varusuario_un = "-1";
if (isset($_SESSION['MM_Username'])) { $varusuario_un = $_SESSION['MM_Username'];
}
$query_un = sprintf("SELECT * FROM cambiar_cabezera_usuario WHERE cambiar_cabezera_usuario.id_registro AND cambiar_cabezera_usuario.id=%s", GetSQLValueString
($varusuario_un, "int"));
?>
<img src="<?php echo $row_un['imagen']; ?>" width="100" height="100">
porfavor ayuda!!!