Hey guys. First of all, thank you very much for your help in my previous thread. I finally got the bloody thing to work.
Now, I am having an issue trying to get a decent display of my data going on.
My current code:
[code=php]$link = mysql_connect(‘localhost’, ‘****’, ‘*****’) or die(‘Could not connect: ‘ . mysql_error());
mysql_select_db(‘*****’) or die(‘Could not select database’);
$query = ‘SELECT item_buyer, item_name FROM eqdkp_items ORDER BY item_id DESC LIMIT 0,8’;
$result = mysql_query($query) or die(‘Query failed: ‘ . mysql_error());
echo “<table width=350 align=right>”;
echo “<tr><th colspan=2 align=center><b><u>Latest Loots</u></b></th></tr>”;
while (list($buyer, $item_name) = mysql_fetch_row($result)) {
$item_link = “[item]”.$item_name.”[/item]”;
$myMessage = itemstats_parse($item_link);
echo (“<tr><td>”.$buyer.”</td><td>”.$myMessage.”</td></tr>”);
}
echo “</table>”;
mysql_free_result($result);
mysql_close($link);
What I want to do is either put a background image behind this table, or make two borders around the table — one left border and one bottom border.
I have been trying different forms of HTML inside of the PHP to make this happen, but apparently it is just not clicking. I have thought about using an external style sheet, but I thought that that would have been more of a hassle.
Any help would be appreciated.