Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $query = "Select * from $PSWinners where OwnerKey = '$ownerkey'";
- $result = mysql_query($query) or die(mysql_error());
- $num = mysql_num_rows($result);
- if ($num > 0)
- {
- ?>
- <b>People that recieved your prize:</b>
- <table border = "1" class = "ownerdata" cellspacing = "1" cellpadding = "3">
- <tr>
- <th width = "34%" class = "ownerheader">Winner Name</th><th width = "33%" class = "ownerheader">Prize Selected</th><th width = "33%" class = "ownerheader">Your Machine</th>
- </tr>
- <?php
- while( $array = mysql_fetch_assoc($result) )
- {
- $V1 = $array['WinnerName'];
- $V2 = $array['PrizeKey'];
- $V3 = $array['MachineOwner'];
- if ($V3 == $ownerkey) $V3 = "YES";
- else $V3 = "NO";
- $query = "Select * from $PSData where ItemKey = '$V2'";
- $result = mysql_query($query) or die(mysql_error());
- $row = mysql_fetch_array($result);
- $V2 = $row['ItemName'];
- ?>
- <tr>
- <td><center><?php echo $V1; ?></center></td>
- <td><center><?php echo $V2; ?></center></td>
- <td><center><?php echo $V3; ?></center></td>
- </tr>
- </table>
- <?php
- }}
- ?>
Add Comment
Please, Sign In to add comment