
25/03/2007, 08:28
|
| | Fecha de Ingreso: enero-2002 Ubicación: Perez Zeledon Costa Rica
Mensajes: 1.009
Antigüedad: 23 años, 2 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? |