Hi all,
I'm using a while loop and looping through data in a database.
When I loop through, instead of looping through once it loops through several times.
How can I get it to just loop once per field for each user?
$query = 'SELECT persinfo.userId, persinfo.url, persinfo.email, men.password FROM persinfo, men where pass_id = 1';
$result = mysql_query($query) or die (mysql_error());
$row = mysql_fetch_array($result);
foreach ($row as $myrow )
{
echo $myrow . '<br>';
}
Thanks