Topic: Displaying results
<?php
// query to set up appropriate player challenges
$query = "SELECT * FROM punbb2_ladders WHERE imatch_id=$imatch_id";
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
$imatch_id = (int)$_GET['imatch_id'];
?>
<br />
<?php echo $line['username'].'\'s pending challenges:' ?></dt><br />
<?php
while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
{ if ($row['playerb'] == $line['username']) { echo $row['playera'].'has a challenge against'.$row['playerb'].'(awaiting winner)';
} else { echo 'No current challenges'; }
}
?>
I am trying to take that information that we INSERT from the thread "You're a genious if you figure this out", and display it on a page. The page is a custom user profile page; already set up. I am having trouble displaying the data. Any suggestions? Im pretty tired so Ima check this later. Replies plz