Hi, I am working on a thing, that will check how many referrals people have, then if they have a certain amount they will recieve a prize, and when they revieve the prize, 1 pt is added to a field that lets us know what prizes they have recieved.
I am not sure how to use an if statement inside of a print"" or if thats even possible.
Ok with that said here is the part i am having trouble with
<?
print "<table border=1>
<tr><td width=60><b><u>Followers</td><td width=100><b><u>Details</td><td width=20%><b><u>Gift</td></tr>";
$iref = mysql_query("select * from ref_prizes order by id asc");
while ($ref = mysql_fetch_array($iref)) {
print "<tr><td>$ref[refs] </td>
<td>$ref[msg]</td>
<td>$ref[gift]<br>
if ($stat[refs] >= $ref[id]) {
<a href='referrals.php?action=recieve'>Get Prize</a>
} else {
Keep working
}
</td>
</tr>";
}
print "</table>";
?>
Thanks alot for checking this out, and thanks in advance.
-Dusk