Tema: function
Ver Mensaje Individual
  #7 (permalink)  
Antiguo 08/02/2011, 11:47
Avatar de juan_14nob
juan_14nob
 
Fecha de Ingreso: abril-2010
Mensajes: 552
Antigüedad: 14 años
Puntos: 6
Respuesta: function

Es cierto pateketrueke!! muchas gracias!! ahora me surgio otro problema, cuando hago el SELECT a una tabla de la base de datos
Código PHP:
$strselect="select * from home ORDER BY id asc LIMIT 6";
$resultado=mysql_query($strselect,$conexion);
$registro mysql_fetch_array($resultado); 
ahi lo que hago es tomar los primeros 6 valores de la tabla

pero cuando los quiero mostrar
Código PHP:
while($registro=mysql_fetch_array($resultado)){
echo 
"<tr>";
    
echo 
"<td>";

echo 
$registro['titulos'];
echo 
"</td>";
echo 
"<td>";
echo 
$registro['parrafos'];
echo 
"<td width='50'><input type='radio' value='onn'  name=".$registro['id'].">on</td><td width='50'><input type='radio' value='off' name=".$registro['id'].">off</td>";


Me muestra del id 2 en adelante.. y el me niega el primer registro osea
2
3
4
5
6