Using this code:
<?
$query="SELECT * FROM users WHERE username = '$_GET[username]'";
$result=mysql_query($query) or die (mysql_error());
$num=mysql_numrows($result);
while ($row = mysql_fetch_array($result)) // this will grab the results from query
{
if ($email) {
$email .= " and $row[email]";
$verbiage = "es are";
} else {
$email = $row[email];
$verbiage = " is";
}
$website = $row[website];
}
?>
Email address<? echo "$verbiage $email" ?>
Displays, and tsting2 and testing and tsting2 and testing and tsting2 and testing and tsting2 and testing and tsting2 and testing and tsting2 and testing and tsting2 and testing and tsting2 and testing and tsting2 and testing and tsting2 and testing and tsting2 and testing and tsting2testing, tsting2, testing, tsting2, testing, tsting2, testing, tsting2, testing, tsting2, testing, tsting2, testing, tsting2, testing, tsting2, testing, tsting2, testing, tsting2, testing, tsting2, testing, tsting2, testing, tsting2, and testing and tsting2 and testing and tsting2 and testing and tsting2 and testing and tsting2 and testing and tsting2 and testing and tsting2 and testing and tsting2 and testing and tsting2 and testing and tsting2 and testing and tsting2....
It adds and testing and tsting2 (the values for email) with every browser refresh.