PHP Code:
<?php
include('../config/database_trade.php');
$sql_select_trades = "SELECT * FROM trades";
$sql_select_trades_query = mysql_query($sql_select_trades);
$sql_row = mysql_fetch_object($sql_select_trades_query);
echo "<table border='1'>";
echo "<tr>";
echo "<th>User A</th>";
echo "<th>User B</th>";
echo "<th>Item A</th>";
echo "<th>Item B</th>";
echo "<th>Datum</th>";
echo "<th>Status</th>";
echo "</tr>";
echo "<tr>";
echo "<th>"; echo $sql_row->usera; echo "</th>";
echo "<th>"; echo $sql_row->userb; echo "</th>";
echo "<th>"; echo $sql_row->des1; echo "</th>";
echo "<th>"; echo $sql_row->des2; echo "</th>";
echo "<th>"; echo $sql_row->date; echo "</th>";
echo "<th>"; echo $sql_row->state; echo "</th>";
echo "</tr>";
echo "</table";
?>
Habe dan an ne While-Schleife gedacht ;/