Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/06/2010, 03:37
opzina
 
Fecha de Ingreso: marzo-2008
Mensajes: 1.020
Antigüedad: 18 años, 6 meses
Puntos: 21
Problemas con la funcion

Cree esta funcion:
archivo: funciones.php

Código PHP:
function selectdb($resultado){
    
$consulta = "SELECT * FROM Novedades WHERE nov_ID LIMIT 0, 200"; 
    
$resultado = mysql_query($consulta);
} 
llamo a la funcion en el archivo procesar.php

// llamo
selectdb($resultado);

//imprimo lo de la funcion
Código PHP:
while($row = mysql_fetch_array($resultado)){
    echo 
$row['Fecha'] . " | " . $row['Novedad'] . "<br/>";
} 
Pero algo no esta bien, y no se termina de ejecutar el script.