but wut i want to do is... when they post... a quote is added.... but how to have it so that its dynamic and changes when the poster changes their quote(signature).
i tried it this way... and it didnt work...
function signature($Author) {
$result = @mysql_query("SELECT * FROM members WHERE username = \"$Author\"");
while ($userinfo = mysql_fetch_array($result)){
echo"$quote";
}
}
function topics($tid, $cat){
global $strategy_table_width, $rank, $strategyteam, $userinfo;
$sql = "SELECT * FROM topics WHERE category = $cat AND id = $tid ";
$result = mysql_query($sql)
or die(mysql_error());
echo"<table width=100% border=0 cellspacing=0 cellpadding=0>
<tr>
<th width=94% scope=row> </th>
<th width=6% scope=row><a href=addtopic.php?sid=$_GET[cat]><img src=images/buttons/newtopic.gif width=95 height=23 border=0></a></th>
<th width=6% scope=row><a href=postreply.php?tid=$_GET[tid]><img src=images/buttons/newreply.gif width=95 height=23 border=0></a></th>
</tr>
</table>";
while ($row = mysql_fetch_array($result)){
echo "<br>
<table width=$strategy_table_width border=1 align=center cellpadding=0 cellspacing=1 bordercolor=999999>
<tr>
<th><p>
<table width=100% border=1 cellpadding=0 cellspacing=0 bordercolor=999999 style='border: 1px #000000;'>
<tr>
<td width=21% background=images/headerbg.gif colspan=2>Title:$row[Title]</td>
<td width=51 background=images/headerbg.gif colspan=2><table width=231 height=27 border=0 cellspacing=0 cellpadding=0>
<tr>
<th scope=row>Author: $row[Author]</th>
</tr>
</table></td>
<td width=81 background=images/headerbg.gif colspan=2><table width=231 border=0 cellspacing=0 cellpadding=0>
<tr>
<th scope=row>Date Posted: $row[Date]</th>
</tr>
</table></td>
</tr>
<tr>
<td><p align=center>$row[Author]<br><br><br>
D'OH town<br>
<img src=images/avatars/noavatar.gif><br>
[Post_count]<br>
Hellsville<br>
Warning: 0%</p>
<p> </p></td>
<td colspan=5><table width=100% height=100% border=0 cellpadding=0 cellspacing=0>
<tr valign=top>
<th scope=row><div align=left>$row[Post] </div></th>
</tr>
</table>";
echo"
<table width=100% border=0 cellspacing=0 cellpadding=0>
<tr valign=bottom>
<th scope=row><div align=left>"; signature('$row[Author]'); echo"</div></th>
</tr>
</table></td>
</tr>
<tr>
</tr>
<tr>
<td colspan=6 background=images/footerbg.gif><div align=right>";
echo("<table width=100 border=0 align=right cellpadding=0 cellspacing=0>
<tr>
<td scope=row><div align=center><a href=postmodify.php?poc=t&tid=$row[id]>Edit</a></div></td>
</tr>
</table>");
}
echo"</div></td>
</tr>
</table>
</th>
</tr>
</table><br>
";
}
Edited by PlaGuEX, 24 July 2005 - 02:24 PM.
