$sql = "SELECT * FROM noticia INNER JOIN archivos"; $consulta = mysql_query($sql) or die (mysql_error());