PHP expert |
|
<form name="form4">
<table width="650" border="1" bordercolor="" style="border-collapse:collapse;" cellpadding="3" cellspacing="0">
<tr>
<th align="center"width="20%">Nickname</th>
<th align="center"width="20%">Rank</th>
<th align="center"width="20%">Sentry</th>
<th align="center"width="20%">Spy</th>
<th align="center"width="20%">Reason</th>
</tr>
<?php
$res = mysql_query("SELECT nickname,rank,sentry,spy,reason FROM targets");
while ($arr = mysql_fetch_assoc($res))
{
?>
<table>
<tr>
<td>
<?php echo $arr['nickname']; ?>
</td>
</tr>
</table>
<?php
}
mysql_free_result($res);
?>
</table>
</form>
<form name="form4"> <table width="650" border="1" bordercolor="" style="border-collapse:collapse;" cellpadding="3" cellspacing="0"> <tr> <th align="center"width="20%">Nickname</th> <th align="center"width="20%">Rank</th> <th align="center"width="20%">Sentry</th> <th align="center"width="20%">Spy</th> <th align="center"width="20%">Reason</th> </tr> <?php $res = mysql_query("SELECT nickname,rank,sentry,spy,reason FROM targets"); { ?> <table> <tr> <td> <?php echo $arr['nickname']; ?> </td> </tr> </table> <?php } ?> </table> </form>
En dan verder werken... |