Една форма заедно с пхп код

2SHAE

Registered
Значи искам да попитам как може със css да направя ето тоя код последните мнения да са примерно едното в сива кутийка под него в по светло сива кутийка плс мн ми трябва ето го кода

<?php
Header("Content-type: text/html; charset=windows-1251");
//server configure
$dbhost="localhost";
$dbuser="root";
$dbpass="12345678";
$dbname="phpbb2";
//server configure
//file settings
$limit="10"; //????? ???????? ???? ?? ???????
$simvola_title="25"; //????? ????? ?? ? ?????????? ?? ??????, ? ???? ???? ...
$simvola_text="120"; //????? ??????? ?? ? ?????? ??? ??????
$root_forum="phpbb2"; //??? ?? ??????
//file settings

$connection = mysql_connect($dbhost, $dbuser, $dbpass);
$db = mysql_select_db($dbname, $connection);

$query = mysql_query("select * from phpbb_topics order by topic_time desc limit 0,$limit");
while($rows = mysql_fetch_array($query))
{
$qry = mysql_query("select * from phpbb_forums where forum_id='$rows[forum_id]'");
$rwz = mysql_fetch_array($qry);
$forum = $rwz[forum_name];
$catid = $rwz[cat_id];
$qry2 = mysql_query("select * from phpbb_categories where cat_id='$catid'");
$rwz2 = mysql_fetch_array($qry2);

if (strlen($rows[topic_title])>$simvola_title)
{$totchki='...';}
else
{$totchki='';}
$zaglavieto=substr($rows[topic_title],0 , $simvola_title);

echo "> ".$cat." <a href=\"".$root_forum."/viewtopic.php?t=".$rows[topic_id]."\">".$zaglavieto.$totchki."</a> (".$rows[topic_replies].")<br/>\n";
}
?>
 
Виж това дали ще проработи :)
Код:
<?php
Header("Content-type: text/html; charset=windows-1251");
//server configure
$dbhost="localhost";
$dbuser="root";
$dbpass="12345678";
$dbname="phpbb2";
//server configure
//file settings
$limit="10"; //????? ???????? ???? ?? ???????
$simvola_title="25"; //????? ????? ?? ? ?????????? ?? ??????, ? ???? ???? ...
$simvola_text="120"; //????? ??????? ?? ? ?????? ??? ??????
$root_forum="phpbb2"; //??? ?? ??????
//file settings

$connection = mysql_connect($dbhost, $dbuser, $dbpass);
$db = mysql_select_db($dbname, $connection);

$query = mysql_query("select * from phpbb_topics order by topic_time desc limit 0,$limit");
$colors = array(
"1" => "27DB45",
"2" => "27DB30",
"3" => "27DB15",
"4" => "27DB00",
"5" => "09DB10",
"6" => "08CC0F",
"7" => "07B40D",
"8" => "06990B",
"9" => "057E09",
"10" => "045B06"
);
$i = "1";
echo"<table border=\"1\" cellspacing=\"2\" cellpadding=\"2\">";
while($rows = mysql_fetch_array($query))
{
$qry = mysql_query("select * from phpbb_forums where forum_id='$rows[forum_id]'");
$rwz = mysql_fetch_array($qry);
$forum = $rwz[forum_name];
$catid = $rwz[cat_id];
$qry2 = mysql_query("select * from phpbb_categories where cat_id='$catid'");
$rwz2 = mysql_fetch_array($qry2);

if (strlen($rows[topic_title])>$simvola_title)
{$totchki='...';}
else
{$totchki='';}
	 $zaglavieto=substr($rows[topic_title],0 , $simvola_title);
	 $color = $colors[$i];
	 echo"<tr bgcolor=\"#$color\"> <td> $cat <a href='$root_forum/viewtopic?t=$rows[topic_id]'> $zaglavieto.$totchki </a> </td></tr>";
	 $i++;
	 if($i > 9){$i = "1";}
}
echo"</table>";
?>
 

Back
Горе