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

Gracias kaninox, jeje sabia que era un if pero no se como exactamente meterlo en mi código esto es lo que tende hasta ahorita y no me funciona

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>
    
    
<?php $query_noticiaRS "SELECT * FROM yu_noticia";

while (
$dato = @mysql_fetch_array($query_noticiaRS))
{
if (
$dato[audio] == '0')
{
echo 
"no hay player";
}
else
{
echo 
"<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;soundFileaudio/<?php echo $row_noticiaRS['file']; ?>">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object>";
}
}  ?>

    <p> </p></td>
  </tr>
</table>
</body>
</html>
<?php
mysql_free_result
($noticiaRS);
?>

Última edición por pacognovellino; 13/11/2008 a las 00:04