include("conexion.php"); $idart=$_GET["art"]; if(!is_numeric($idart)) exit(); $articulosrandom= mysql_query("select *, articulos.Id as Id from articulos, articulos_imagenes where articulos.Id = articulos_imagenes.idArt AND articulos.estadoArt=1 and articulos.catArt=1 and articulos.Id<>$idart GROUP by articulos_imagenes.idArt order by rand() limit 0,3"); $articulos= mysql_query("select *, articulos_imagenes.Id as IID, articulos.Id as Id from articulos, articulos_imagenes where articulos.Id = articulos_imagenes.idArt AND articulos.estadoArt=1 and articulos.Id=$idart"); while ($rs=mysql_fetch_array($articulos)): $oDate = @strtotime($rs["fecha"]); @$fecha=date("l",$oDate)." ". date("d",$oDate) ."th, " . date("M",$oDate) .", " . date("Y",$oDate); $titulo=$rs["titleArt"]; $body=$rs["bodyArt"]; $imagenes[]=$rs["imagen"]; $videoURL=$rs["videoURL"]; endwhile; ?>