Hi, i have this code i wrote, but it doesn't seem to output anything. All it outputs is "0"?
Any ideas??
Regards,
Martin
Computing Help And Info:
Code:
global $h;
$h = "";
$q = mysql_query("SELECT `nid`, `title`, `news`, `subBy`, `view` FROM `news` WHERE `teamID` = '".$_SESSION['teamID']."' AND `view` = 'Y' ORDER BY `subDate` DESC") or die(mysql_error());
while(list($nid,$t,$n,$sb,$v) = mysql_fetch_row($q)){
$d = date("l jS F Y",$ts);
$n = nl2br($n);
$h += "<b>$t</b><br>
<font color=\"#CCCCCC\">$d</font><br><br>
$n<br><br>
<hr size=\"1\" color=\"#CCCCCC\"><div align=right>Posted By: $sb :: <a href=\"?index&s=comments\">(0) Comments</a></div><br><br>";
}
echo $h;
Regards,
Martin
Computing Help And Info: