I have a series of records in a database. I'm using a while loop to retrieve each entry. Within that while loop i'm calling a function created in an external file that's accessed by require_once.
The problem is only the first entry from my databse is returned. Removing the function call returns all the entries. But I need access to this function.
//Are there any suggestions other than using
$sql = mysql_query("select username from members ");
while($r = mysql_fetch_array($sql))
{
$array[] = $r;
}
//then running a foreach loop to extract the data from $array