example:
That's just a very very quick example I've thrown together. Now what I want to do is make it so:PHP Code:$getinfo = mysql_query("SELECT * FROM information");
while ($info = mysql_fetch_array($getinfo)) {
$age = $info['age'];
print $age;
print '<br>';
print $abc;
}
if the age is above 20, $abc = 'above 20';
if the age is 20, $abc = 'is 20';
if the age is below 20, $abc = 'below 20';
Would just putting if statements in the loop work or is there something else that I can do?



.

Bookmarks