Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/12/2008, 12:59
Avatar de camilo_1987
camilo_1987
 
Fecha de Ingreso: junio-2008
Ubicación: ALZIRA, Spain, Spain
Mensajes: 77
Antigüedad: 15 años, 10 meses
Puntos: 0
php y mysql error

phpMyAdmin - 2.9.1.1-Debian-6
Versión del cliente: 5.0.32
<?
$server="db.smalzira.org";
$username="DBUA720";
$password="980980";
$database="DBA296-sma";
$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("DBA296-sma", "SELECT * FROM noticiaes ORDER BY id DESC".$limit);
while($rs=mysql_fetch_array($sentencia)){
?>
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/www.smalzira.org/html/smalzira1/es/index.php on line 19