$id=strip_tags($_GET["cod"]);
$sSQL="SELECT * FROM GestionDatos Where id='". $id ."' ";
$result=mysql_query($sSQL);
While($row=mysql_fetch_array($result))
{
if ($row["publicar"]=='1') { ?>
if($row["pathImgSer"]!=NULL){ ?>
if($row["pathImgSer"]!=NULL){
echo "
";
}
}?>
if($row["pathImgSer"]==NULL){ ?>
} ?>
} } mysql_free_result($result) ?>