Tema: que´hay mal
Ver Mensaje Individual
  #11 (permalink)  
Antiguo 25/03/2007, 08:28
rashid
 
Fecha de Ingreso: enero-2002
Ubicación: Perez Zeledon Costa Rica
Mensajes: 1.009
Antigüedad: 22 años, 3 meses
Puntos: 11
Re: que´hay mal

me sale:
Football Camp; Golf Camp; Grocery Store;

Y todo el script, es:
<?
global $cat_fields, $table_ads;
$sql_query="select * from $table_ads where idnum=$id";
$sql_res=mysql_query("$sql_query");
$row = mysql_fetch_array ($sql_res);

//echo $row."MIRE QUI".$row['check1']."<br>";
echo "Imagen Aqui:";
if (trim($row['check1'])=='Bike Paths') {
echo "<img src='images/si.gif' alt='Bike Paths' width='11' height='11'>";
} else {
echo "<img src='images/no.gif' alt='No' width='8' height='8'>";
}
echo "<br> <p></p>";
echo "Football Camp:";
if (trim($row['check1'])=='Football Camp') {
echo "<img src='images/si.gif' alt='Football Camp' width='11' height='11'>";
} else {
echo "<img src='images/no.gif' alt='No' width='8' height='8'>";
} echo "<br> <p></p>";
?>

Pero en el primer caso me debe imprimir la imagen NO, y en en segundo la imagen SI, y no es asi, en ambos me imprime la imagen NO.

tonces?