echo 'Listado de temas -> Artistas';
if ( isset( $ida ) )
{
muestraArtista( $conexion, $ida );
}
function resize($H, $W, $nW=100, $nH=100)
{
// $nW = 100; $nH = 100;
$image_prop = "";
if ( $W > 0 )
{
if ( $W > $H )
{
$nH = intval(($H/$W)*$nW); $image_prop = " width=\"$nW\" height=\"".$nH."\"";
} else {
$nW = intval(($W/$H)*$nH); $image_prop = " height=\"$nH\" width=\"".$nW."\"";
}
return $image_prop;
}
}
function muestraArtista( $cnx, $ida )
{
$res = @mysql_query( "SELECT id, Instrumento, comentario, CONCAT(nombre, ' ', apellido), Foto_mime, Foto_w, Foto_h FROM artistas WHERE id = $ida", $cnx );
$datos=@mysql_fetch_array($res);
list ( $db_ida, $db_instrumento, $db_notas, $db_nomb, $db_foto, $db_FW, $db_FH ) = $datos;
echo "
";
$img = "db/artistas/$db_ida"."_i001@$db_foto";
if ( !file_exists( $img ) ) $img="images/no_person.gif";
echo "";
echo "
$db_nomb
Datos de interes... | "; echo "