• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Problem ergebinss als tabelle

GrafKakashi

Neues Mitglied
Hallo ich hab ein kleines problem

und zwar würde ich gerne meine mehrfachergebiss als Tabbelle angezeigt wird und irgendwie klappt es nicht

hier der code


Code:
<html>
<head>
<title>Loong Lootdrops</title>
<style type="text/css">
body {
background-color: #FFFFFF;
padding:10px 10px 10px 10px;
font-size: 12px;
font-family:Arial, Verdana, Tahoma, Helvetica, sans-serif;
color:#3F3F3F;
}

a{
color:#00007F;
text-decoration: none;
}

a:hover{
color:#FF5F00;
text-decoration: none;
}

a:active{
color:#00007F;
text-decoration: none;
}

.input {
padding-left:5px;
padding-right:5px;
-moz-border-radius:4px;
-webkit-border-radius:4px;
border-radius: 4px;
background-color:#FFFFFF;
border: 1px solid #CFCFCF;
height:30px;
font-size: 12px;
color:#5F5F5F;
-moz-box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
-webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.button {
background: -webkit-gradient( linear, left top, left bottom, color-stop(0.05, #0000DF), color-stop(1, #0070C0) );
background: -moz-linear-gradient( center top, #0000DF 5%, #0070C0 100% );
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0000DF', endColorstr='#0070C0');
background-color: #0060FF;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
height:30px;
border: 1px solid #0000FF;
display: inline-block;
color: #EFEFEF;
font-size: 14px;
font-weight: bold;
font-face: arial;
padding: 6px 24px;
text-decoration: none;
cursor: pointer;
}
</style>
</head>
<body>



<div align=center>
<h1>Monsterloot</h1>



<form name="suche" action="<?php $_SERVER['SCRIPT_NAME']; ?>" method="POST">
<input class="input" type="text" size=80 name="s">
<input class="button" type="submit" name="submit" value="Suche">
</form>
<br />

<?php
error_reporting(0);
mysql_connect('localhost','xxxACCxxx','xxxxPWxxx') or die ('Es konnte keine Verbindung zum MySQL-Server aufgebaut werden');
mysql_select_db('loong') or die ('Es konnte keine Verbindung zur Datenbank aufgebaut werden');
$limit = 25;
$s = mysql_real_escape_string(strip_tags($_POST['s']));
if($s == '') $s = $_GET['s'];
if($s == '') {
echo '<font style="color:#BF0000;">Sie haben keinen Suchbegriff eingegeben</font>';
} else {
$p = $_GET['p'];
if($p == '') $p = 1;
$query = mysql_query("SELECT * FROM `loot` WHERE `Lootitem` LIKE '%$s%' ORDER BY `Level` DESC") or die (mysql_error());
$results = mysql_num_rows($query);
if($results == 0){
echo '<font style="color:#BF0000;">Keine Treffer gefunden</font>';
}else{
echo '<font style="color:#007F00;"><b>' . $results . '</b> Treffer gefunden</font>';
echo '<br /><br /></div><div align=left><hr noshade size=1 width=100% color=#F0F0F0 />';
$pages = ceil($results/$limit);$result = mysql_query("SELECT * FROM `loot` WHERE `Lootitem` LIKE '%$s%' ORDER BY `Level` LIMIT " . ($p-1)*$limit . ",$limit") or die (mysql_error());
while($row = mysql_fetch_object($result)) {echo $row->MonsterName. '',$row->Level. '',$row->Karte. '',$row->Gebiet. '<br />';
 }
echo '</div><div align=center>';
$navigation = '';
if($p > 1) {
$navigation .= '<a href="'.$_SERVER['SCRIPT_NAME'].'?p=' . ($p-1) . '&s=' .urlencode($s) . '">&laquo; Zur&uuml;ck</a>&nbsp;';
}
for($i = 1 ; $i <= $pages ; $i++) {
if($i == $p) {
$navigation .= '<b>'.$i.'</b>';
}else{
$navigation .= '&nbsp;<a href="'.$_SERVER['SCRIPT_NAME'].'?p=' . $i . '&s=' .urlencode($s) . '">'.$i.'</a>&nbsp;';
}
}
if($p < $pages) {
$navigation .= '<a href="'.$_SERVER['SCRIPT_NAME'].'?p=' . ($p+1) . '&s=' .urlencode($s) . '">&nbsp;Weiter &raquo;</a>';
}
echo '<br /><br />' . $navigation;
}
}
echo '</div>';
?>



aussehen soll es aber so

MonsterName Level Karte Gebiet
Teufelsfuchs 12 DragonCastle Turmkreuzung
Dämonen Karpfen 13 DragonCastle Turmkreuzung
usw

Bitte um hilfe
 

Anhänge

  • loot.jpg
    loot.jpg
    89,7 KB · Aufrufe: 3
Werbung:
Zurück
Oben