Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/11/2008, 23:05
pacognovellino
 
Fecha de Ingreso: noviembre-2008
Mensajes: 23
Antigüedad: 15 años, 6 meses
Puntos: 0
Ayuda con if PHP

hola a todos tengo este código

Código PHP:
<?php require_once('Connections/DbConn.php'); ?>
<?php
mysql_select_db
($database_DbConn$DbConn);
$query_noticiaRS "SELECT * FROM yu_noticia";
$noticiaRS mysql_query($query_noticiaRS$DbConn) or die(mysql_error());
$row_noticiaRS mysql_fetch_assoc($noticiaRS);
$totalRows_noticiaRS mysql_num_rows($noticiaRS);
?>
<!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>Untitled Document</title>
</head>

<body>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="514" valign="top"><p><?php echo $row_noticiaRS['contenido']; ?></p>
<!-- aqui va el player -->
    <p><script language="JavaScript" src="audio/audio-player.js"></script>
<object type="application/x-shockwave-flash" data="audio/player.swf" id="audioplayer1" height="24" width="290">
<param name="movie" value="audio/player.swf">
<param name="FlashVars" value="playerID=1&amp;soundFile= audio/<?php echo $row_noticiaRS['file']; ?>">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object> </p></td>
  </tr>
</table>
</body>
</html>
<?php
mysql_free_result
($noticiaRS);
?>
estoy llamando un reproductor de mp3 desde una base de datos, si hay player inserta 1 en la base de datos de lo contrario queda 0 el valor, ahora lo que quiero hacer es un if para que muestre el player en la pagina si el valor es 1 y si es 0 que no muestre nada, alguien me puede hechar una mano con el codigo

gracias