bare with me here because I will try and word this best I know how.
I have managed to pull the date from my vbulletin forum and show members online on the site homepage, which by the way vbulletin said cant be done??? but I did it.
Anyhow I place code outside the site but then I have issues with width, I choose 80% it looks great but when I check with another browser size its to long then I ajust and you get the picture.
size and % never seems to work, if I can just get it into my frames it would look fine.
here is a section of my code i am having trouble with.
this code at the moment has the members online outside the site frames.
I just cant seem to get it inside without screwing the design up.
remember the code is all fine, i just need to get the sql echo inside the frame so i dont need to worry about the size of that section.
<td class="windowbg3"><center><center> </td>
<table width="62%" cellspacing="0" cellpadding="0" border="0" class="border"0">
<td class="windowbg4"><center><b>Active registered members online</b> </td>
<td class="windowbg3"><center><center><font size="1">Active registered members online in the last 15 minutes</font></center>
<form action="index.php?action=login&sub=1" method="post">
<table width="100%" cellspacing="1" cellpadding="10" border="0">
<td class="windowbg" colspan="2"><img src="ico/sub7.gif"> <font size="1" color="white">Members Online:</b></font><font size="1" color="#fff000">
$con = mysql_connect('localhost', '???????', '?????');
$t = time() - 7600;
$q = mysql_query("select username FROM user WHERE lastactivity > $t");
while ($u = mysql_fetch_array($q))
echo $u['username'].", ";