como php sitios multilenguaje y mySQL "FROM noticiaes y noticiaen" codigo
Código PHP:
<?
$server="localhost";
$username="root";
$password="";
$database="candemasjor";
$offset = 5; //Numero de noticias
$posicion = (int) ($_GET["pos"]*$offset); //Numero de noticia desde la cual va a empezar a mostrarlas
$siguiente = $_GET["pos"]+1; //variable siguiente
$anterior = $_GET["pos"] == 0 ? 0 : $_GET["pos"]-1; //variable anterior
$limit = " LIMIT ".$posicion.", ".$offset;
$connection=mysql_connect ($server, $username, $password);
mysql_select_db($database, $connection);
$sentencia=mysql_db_query("candemasjor", "SELECT * FROM noticia ORDER BY id DESC".$limit);
while($rs=mysql_fetch_array($sentencia)){
?>