Onbekend |
|
Ok.
Bedankt .
Deze manier zou dan beter moeten zijn?
<?php
Mysql_connect('localhost', 'gebruikersnaam', 'wachtwoord');
Mysql_select_db('');
$res= Mysql_query('Select land, naam From crew')
or die(Mysql_error());
?>
<table cellpadding='1' cellspacing='1'>
<?php
while($arr= Mysql_fetch_assoc($res))
{
?>
<tr>
<th name='land'>
</th>
<th name='naam'>
<p class=''>Naam</p>
</th>
</tr>
<tr>
<td name='land'>
<img src='<?php $arr['land'] ?>' class='land'/>
</td>
<td name='naam'>
<p><?php $arr['naam'] ?></p>
</td>
</tr>
<?php
}
?>
</table>
<?php
Mysql_free_result($res);
Mysql_close();
?>
<?php ?> <table cellpadding='1' cellspacing='1'> <?php { ?> <tr> <th name='land'> </th> <th name='naam'> <p class=''>Naam</p> </th> </tr> <tr> <td name='land'> <img src='<?php $arr['land'] ?>' class='land'/> </td> <td name='naam'> <p><?php $arr['naam'] ?></p> </td> </tr> <?php } ?> </table> <?php ?>
Eventuele opmerkingen graag?
MvG,
Generix |