Hi guys, this loops is really simple but for some reason it’s duplicating the results which are coming form mysql
I can’t for the life of me work out why? It’s probably something really simple but i’ve just picked up php and dont have the knowledge to work out why yet!
//-create while loop, and loop through result set
echo ‘
’;
while($row=mysql_fetch_array($result))
{
//-display the result of the array
echo ‘
’;
echo '<tr><th>Torrent Name</th>';
echo '<td>';
echo '<th>Date of Collection</th>';
echo '<td>';
echo '<th>Size</th>';
echo '<td>';
echo '<th>Seeds</th>';
echo '<td>';
echo '<th>Leachers</th>';
echo '<td>';
echo '<th>Tracker(s)</th>';
echo '<td>';
echo '<th>Hash Value</th>';
echo ‘
’;
foreach ($row as $Torrentname){
//loop through elements
echo "<td>$Torrentname</td>";
}
echo ‘
’;