Tengo una consulta.
Tengo un sistema de noticias, en el cual esta en la carpeta /home, y en el archivo index.php tengo que incluir el config de ese sistema por medio de:
Código PHP:
<? include "admin/config.php"; ?>
Código PHP:
<? $quhe = "SELECT * FROM berita ORDER BY id DESC limit 7"; $qhe = @mysql_query($quhe,$connect) or die ("Wrong Query"); while ($rhe[] = mysql_fetch_array ($qhe))
{
/*NADA*/
}
$noticia = reset($rhe);
?>
Bien, ahora, supongamos que yo tengo OTRO sistema de noticias en home/otro/, y quiero meter las ultimas noticias de este ultimo sistema en la index.php inicial, dentro de home, como hago ?
a lo que voy es, que voy a tener que poner primero:
Código PHP:
<? include "admin/config.php"; ?>
Código PHP:
<? include "otro/admin/config.php"; ?>
Código PHP:
<? $quhe = "SELECT * FROM berita ORDER BY id DESC limit 7"; $qhe = @mysql_query($quhe,$connect) or die ("Wrong Query"); while ($rhe[] = mysql_fetch_array ($qhe))
{
/*NADA*/
}
$noticia = reset($rhe);
?>