Onbekend |
|
Hey,
ik heb deze code:
<?php
include ( 'header.php' ) ;
?>
<table width='50%'>
<tr>
<td>
<marquee width='100%'>
<?php
$Query = mysql_query ( "select * from " . $Tabel . " order by datum desc" ) ;
while ( $Row = mysql_fetch_array ( $Query ) )
{
$Email = $Row['email'];
if ( $Email == "" )
{
$Email = $Row['naam'];
}
else
{
$Email = "<a href='verzenden.php?p=" . $Row['id'] . ">" . $Row['naam'] . "</a>";
}
$Homepage = $Row['homepage'];
if ( $Homepage == "http://" OR $Homepage == "" )
{
$Homepage = "";
}
else
{
$Homepage = " <a href='" . $Row['homepage'] . "'><img src='img/home.png' border='0'></a> ";
}
echo $Email . $Homepage . " zei: " . $Row['bericht'] . " <img src='windows.png'> ";
}
?>
</marquee>
</td>
</tr>
</table>
<?php
include ( 'footer.php' ) ;
?>
<?php include ( 'header.php' ) ; ?> <table width='50%'> <tr> <td> <marquee width='100%'> <?php $Query = mysql_query ( "select * from " . $Tabel . " order by datum desc" ) ; { $Email = $Row['email']; if ( $Email == "" ) { $Email = $Row['naam']; } else { $Email = "<a href='verzenden.php?p=" . $Row['id'] . ">" . $Row['naam'] . "</a>"; } $Homepage = $Row['homepage']; if ( $Homepage == "http://" OR $Homepage == "" ) { $Homepage = ""; } else { $Homepage = " <a href='" . $Row['homepage'] . "'><img src='img/home.png' border='0'></a> "; } echo $Email . $Homepage . " zei: " . $Row['bericht'] . " <img src='windows.png'> "; } ?> </marquee> </td> </tr> </table> <?php include ( 'footer.php' ) ; ?>
Als ik dit doe, krijg ik maar 1 id te zien vanaf de database (terwijl het er tog meerdere zijn, nu denk ik dat het probleem hier zit:
echo $Email . $Homepage . " zei: " . $Row['bericht'] . " <img src='windows.png'> ";
echo $Email . $Homepage . " zei: " . $Row['bericht'] . " <img src='windows.png'> ";
Want als ik de img verander in
echo $Email . $Homepage . " zei: " . $Row['bericht'] . " | ";
echo $Email . $Homepage . " zei: " . $Row['bericht'] . " | ";
Krijg ik gewoon meerdere te zien ?
|