HTML interesse |
|
Bij mijn site heb ik een klein probleempje:
mijn site
Hoe kan ik alles onder elkaar zetten i.p.v. naast elkaar?
hieronder vind je de code:
<?
if(!$mid){
$query = mysql_query("SELECT * FROM webdesign ORDER BY id ASC");
$result = mysql_num_rows($query);
if(!$result){ ?>
<p>
<table align="left" width="100%">
<tr>
<td height="27" align="center">Nog geen projecten beschikbaar in deze categorie. </td>
</tr>
</table>
</p>
<?
}else{
include_once('config.php');
$query = mysql_query("SELECT * FROM webdesign ORDER BY id ASC");
while($list = mysql_fetch_object($query)){
?>
<p>
<table align="left">
<tr>
<td background="http://freaky.computerfactor.nl/FM/background_top.jpg" colspan="2" align="center" class="titel"><?php echo $list->naam ?> :: <a href="<?php echo $list->url ?>" target="_blank"><?php echo $list->url ?></a></td>
</tr>
<tr>
<td><img src="http://freaky.computerfactor.nl/FM/uploads/<?php echo $list->bestand ?>"></td>
<td><?php echo $list->beschrijving ?></td>
</tr>
<?
if ($_SESSION['level'] == Admin) { ?>
<tr>
<td colspan="2" align="center" class="item"><a href="?id=projecten/webdesign.php&actie=delete&del=<? echo $list->id ?>">Verwijder</a></td>
</tr>
</table>
</p>
<?
}
if ($actie == "delete") {
include_once('config.php');
$delete = "DELETE FROM webdesign WHERE id = '".$_GET['del']."'";
mysql_query($delete) or die(mysql_error());
echo "<meta http-equiv=\"refresh\" content=\"0;URL=".$redirect_pagina ."\">";
}
}
}
}
?>
<? if(!$mid){ $query = mysql_query("SELECT * FROM webdesign ORDER BY id ASC"); if(!$result){ ?> <p> <table align="left" width="100%"> <tr> <td height="27" align="center">Nog geen projecten beschikbaar in deze categorie. </td> </tr> </table> </p> <? }else{ include_once('config.php'); $query = mysql_query("SELECT * FROM webdesign ORDER BY id ASC"); ?> <p> <table align="left"> <tr> <td background="http://freaky.computerfactor.nl/FM/background_top.jpg" colspan="2" align="center" class="titel"> <?php echo $list->naam ?> :: <a href=" <?php echo $list->url ?>" target="_blank"> <?php echo $list->url ?></a></td> </tr> <tr> <td><img src="http://freaky.computerfactor.nl/FM/uploads/ <?php echo $list->bestand ?>"></td> <td> <?php echo $list->beschrijving ?></td> </tr> <? if ($_SESSION['level'] == Admin) { ?> <tr> <td colspan="2" align="center" class="item"><a href="?id=projecten/webdesign.php&actie=delete&del= <? echo $list->id ?>">Verwijder</a></td> </tr> </table> </p> <? } if ($actie == "delete") { include_once('config.php'); $delete = "DELETE FROM webdesign WHERE id = '".$_GET['del']."'"; echo "<meta http-equiv=\"refresh\" content=\"0;URL=".$redirect_pagina ."\">"; } } } } ?>
alvast bedankt voor de hulp
|