Ver Mensaje Individual
  #3 (permalink)  
Antiguo 09/08/2010, 09:14
juansiruiz
 
Fecha de Ingreso: enero-2009
Mensajes: 142
Antigüedad: 15 años, 3 meses
Puntos: 0
Respuesta: Ayuda con una function

esta es una de las consultas que se esta haciendo con respecto a esta function.

Código PHP:
<?php
                      $dbh 
EstablecerConexion();
                        
$SQL=SqlNoticia1();
                         
$SQL .=" and PosicnColumn=1 ";
                        
$SQL .=" group by CodNotic,TitNotic,ResumnNotic,FecNotic order by PosicnColumn,FecNotic Desc Limit 1";
                        
$i=0;
                        
$SQL=SQLSeguro($SQL);
                        if (
$dbh){
                            
$Datos mysql_query($SQL);
                            if (
$Datos) {
                                include(
"datosnoticia.php");
                            }
                        }
                         
?>
                            <table border="0" cellspacing="0" cellpadding="0" style="width: 374px">
                              <tr>
                                <td valign="top" style="height: 258px">
                                <span class="titulo"><a href="detnotic.php?CodNotic=<?php echo $CodNotic ?>" class="titulo"><?php echo $TitNotic ?></a></span><br><br>
                                                                      <?php if ($NumFotos>0){?>
                                <img src="<?php echo $RutaFotos?>/1.jpg" width="360" height="222"/> <?php 
                                         
}       ?>
                                          
                                
                                  <p><span class="hora"><?php echo $Hora ?></span>  <span class="arial11"><div align=justify><?php echo $ResumnNotic ?></div></span>
                                </p></td>
                                </tr>
                              
                            </table>
                            <?php                
                                
++$i;
                                
                        
mysql_close();
                             
?>