Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/03/2009, 13:26
Avatar de webbeginner
webbeginner
 
Fecha de Ingreso: noviembre-2004
Mensajes: 241
Antigüedad: 19 años, 5 meses
Puntos: 2
Mensaje Como quitar el primer registro de este Recordser

Hola !

Tengo el siguiente Recordset
Código PHP:
<?php
if (!function_exists("GetSQLValueString")) {
function 
GetSQLValueString($theValue$theType$theDefinedValue ""$theNotDefinedValue ""
{
  
$theValue get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  
$theValue function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch (
$theType) {
    case 
"text":
      
$theValue = ($theValue != "") ? "'" $theValue "'" "NULL";
      break;    
    case 
"long":
    case 
"int":
      
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case 
"double":
      
$theValue = ($theValue != "") ? "'" doubleval($theValue) . "'" "NULL";
      break;
    case 
"date":
      
$theValue = ($theValue != "") ? "'" $theValue "'" "NULL";
      break;
    case 
"defined":
      
$theValue = ($theValue != "") ? $theDefinedValue $theNotDefinedValue;
      break;
  }
  return 
$theValue;
}
}

mysql_select_db($database_conn_fleonXII$conn_fleonXII);
$query_rsNoticiaPrincipal "SELECT * FROM contenido WHERE tc_ID = 1 ORDER BY cont_ID DESC";
$rsNoticiaPrincipal mysql_query($query_rsNoticiaPrincipal$conn) or die(mysql_error());
$row_rsNoticiaPrincipal mysql_fetch_assoc($rsNoticiaPrincipal);
$totalRows_rsNoticiaPrincipal mysql_num_rows($rsNoticiaPrincipal);
?>
Y quisiera ver si me pueden orientar a como modificar el codigo de manera que no me muestre el primer registro que arroja como resultado este recordset, es decir QUE MUESTRE TODO EXCEPTO EL PRIMER REGISTRO

Gracias !!!!
__________________
************************
"La bondad es simple; la maldad, múltiple"