Page 1 of 1
Convert!
Posted: Tue Jun 04, 2002 1:13 pm
by Aaron
Code: Select all
<table width="500" border="0" cellspacing="0" cellpadding="0"><tr>
<td bgcolor="#000000"><font color="#FFFFFF"> :: Title // Catogory :: Poster</font></td></tr>
<tr><td bgcolor="#999999">News</td></tr><tr>
<td bgcolor="#999999"><div align="right">no of comments :: Add // View</div></td></tr></table>
Is how the I want the news displayed...but this is how it looks =/
Code: Select all
echo " <h1>news</h1>\n";
$query = mysql_query("SELECT * FROM $table_news WHERE approved = 'Yes' ORDER BY id DESC LIMIT $ppp");
while($result = mysql_fetch_array($query)) {
$resultїbody] = zap($resultїbody]);
$date = date("F d, Y", $resultїtime]);
$time = date("h:i a", $resultїtime]);
$date = strtolower($date);
$time = strtolower($time);
if($resultїnumcom] > 1) {
$word = "comments";
} else {
$word = "comment";
}
if($resultїextended]) {
$size = number_format(strlen($resultїextended]));
$morelink = "<br /><br /><a href='truth.php?id=$resultїid]'>read more ($size bytes)</a>";
} else {
$morelink = "";
}
echo " <p>\n";
echo " <b> :: <a href='users.php?name=$resultїaname]'>$resultїaname]</a> // <a href='truth.php?id=$resultїid]'>$resultїtitle]</a></b><br />\n";
echo " for <a href='topics.php?name=$resultїtopic]'>$resultїtopic]</a> on $date at $time ($resultїnumcom] $word: <a href='truth.php?id=$resultїid]#addcomments'>add</a> // <a href='truth.php?id=$resultїid]#comments'>view</a>)<br /><br /></p>\n";
echo " <blockquote>$resultїbody]\n";
echo " $morelink</blockquote>\n";
echo " <br />\n";
}
Can anyone combine them without causing a parse error =/
Posted: Tue Jun 04, 2002 2:26 pm
by jason
What program is this from?
Posted: Tue Jun 04, 2002 2:47 pm
by Aaron
nos. not public, brought it.
Posted: Tue Jun 04, 2002 4:47 pm
by volka
oh sorry,
just signed a non-disclosure agreement about this problem

Posted: Tue Jun 04, 2002 4:56 pm
by Aaron
=(
Posted: Thu Jun 06, 2002 7:06 am
by hex
Code: Select all
echo " <h1>news</h1>\n";
$query = mysql_query("SELECT * FROM $table_news WHERE approved = 'Yes' ORDER BY id DESC LIMIT $ppp");
while($result = mysql_fetch_array($query)) {
$resultїbody] = zap($resultїbody]);
$date = date("F d, Y", $resultїtime]);
$time = date("h:i a", $resultїtime]);
$date = strtolower($date);
$time = strtolower($time);
if($resultїnumcom] > 1) {
$word = "comments";
} else {
$word = "comment";
}
if($resultїextended]) {
$size = number_format(strlen($resultїextended]));
$morelink = "<br /><br /><a href='truth.php?id=$resultїid]'>read more ($size bytes)</a>";
} else {
$morelink = "";
}
echo "<table width='500' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td bgcolor='#000000'><font color='#FFFFFF'> :: ";
echo "<a href='truth.php?id=$resultїid]'>$resultїtitle]</a> // <a href='topics.php?name=$resultїtopic]'>$resultїtopic]</a> :: ";
echo "<a href='users.php?name=$resultїaname]'>$resultїaname]</a></font></td></tr>";
echo "<tr><td bgcolor='#999999'>$resultїbody]\n$morelink\n";
echo "<td bgcolor='#999999'><div align='right'>($resultїnumcom] $word: <a href='truth.php?id=$resultїid]#addcomments'>add</a> // ";
echo "<a href='truth.php?id=$resultїid]#comments'>view</a>)</div></td></tr></table>";
}
Posted: Thu Jun 06, 2002 9:44 am
by Aaron
it looks alittle borxed....
www.unknownzone.org/index2