2006-02-04, 03:53 PM
Can I make a CMS with MyBB as it's forum?
Think "PHPNuke :: phpBB".
Can I?
Also, I Inserted a loooooooooooong entry into the database.
The CMS is displaying this, but stretching the table too much.
How Do I make it so that the table does not stretch?
I am using this code:
Think "PHPNuke :: phpBB".
Can I?
Also, I Inserted a loooooooooooong entry into the database.
The CMS is displaying this, but stretching the table too much.
How Do I make it so that the table does not stretch?
I am using this code:
PHP Code:
<?php
require("vars.php");
require("inc/dbdetails.php");
mysql_connect("$DBHost", "$DBUser", "$DBPass") or die(mysql_error());
mysql_select_db($DBName) or die(mysql_error());
$result_maincontent = mysql_query("SELECT * FROM ".$Prefix."maincontent ORDER BY id DESC");
echo "<table bgcolor='#FFFFFF' border='1' cellpadding='5' cellspacing='0' style='border-collapse: collapse' bordercolor='#C0C0C0' width='100%' id='AutoNumber5'>
��<tr>
����<td height='25' class='thead'>Main Content</td>
��</tr>
��<tr>
����<td>";
while($show_maincontent = mysql_fetch_array($result_maincontent)){
echo "<font face='Trebuchet MS' size='5' color='#c0c0c0'><span style='font-weight: 400'>";
echo $show_maincontent['title'];
echo "</span></font><br>";
echo $show_maincontent['content'];
echo "<br />";
echo "---------------------------------------------------------------------------------------------------------------------------------------------------<br />";
}
echo "</td>
��</tr>
</table>";
?>