Hello!
I have been working on an affiliate link system. A user would click a php link that would add 1 to the count of a certain affiliate, by ID and then return the user to that affiliate page.
My problem comes when I wish to display a table for my affiliates for them to see how many clicks they have and such.
Right now, here is my code for the table :
For some reason this isn't working with my page.
Does anyone have a simpler way of doing this?
I have been working on an affiliate link system. A user would click a php link that would add 1 to the count of a certain affiliate, by ID and then return the user to that affiliate page.
My problem comes when I wish to display a table for my affiliates for them to see how many clicks they have and such.
Right now, here is my code for the table :
Code:
<?php
echo "<table border=1 cellpadding=0 cellspacing=3><tr><td align=center>Affiliate ID Number</td><td align=center>Name</td><td align=center>Number of Clicks</td><td align=center>Payment</td><td align=center>Comments</td></tr>";
for ($i=0; $i<$num; $i++) {
if ($tmp = mysql_fetch_array($result)) {
extract($tmp);
echo "<tr><td align=center>$id</td>";
echo "<td align=center>$name</td>";
echo "<td align=center>$count</td>";
echo "<td align=center>$paid</td>";
echo "<td align=center>$comments</td></tr>";
}
}
echo "</table>";
?>
Does anyone have a simpler way of doing this?
Comment