помагайте спешно!

svilkata12

Registered
Я кажете как мога да оправя тези грешки
влезте тук и вижте по средата http://cool-tutorials.net

плссссссс хееееееелп!!! :cry:
 
аре де сега ги има грешките влез и виж плсссссс много е спешно ще ти дам репутация като трябва плсссссссссссссс :cry: :cry: :cry:
 
Няма никви грешки. Само черни надписи с някви надписи Warning дето не ги зн. кво значат.
 
eто го:

Код:
<?

//phpBB - last topics
//Email: bobi@wthost.net
//Name: Bobi Haidar
// http://web-tourist.net




$host="http://mysql4.freehostia.com";//DB HOST
$user="усера"; //DB user
$pass="пасса ми"; //DB pass
$db="датабазата ми"; //DB name

$broi_temi="20"; // Êîëêî ïîñëåäíè òåìè äà ïîêàçâà
$broi_bukvi="35"; //Äî êîëêî áóêâè îò çàãëàâèåòî íà òåìàòà äà ïîêàçâà

mysql_connect(localhost,$user,$pass);
mysql_select_db($db) or die( "Unable to select database");
$query="SELECT c.topic_time , c.topic_title,c.forum_id,c.topic_id, c.topic_replies,c.topic_type,f.forum_name FROM phpbb_topics c, phpbb_forums f WHERE c.forum_id=f.forum_id and f.auth_view like '0' ORDER BY c.topic_time ";
$result=mysql_query($query);
$num=mysql_num_rows($result);
mysql_close();
$ii=$num-$broi_temi;


for ($i=$num-1; $i>$ii;$i--)
{
$tema=mysql_result($result,$i,"c.topic_title");
$id=mysql_result($result,$i,"c.forum_id");
$topic_broi=mysql_result($result,$i,"c.topic_replies");
$topic_id=mysql_result($result,$i,"c.topic_id");
$topic=mysql_result($result,$i,"c.topic_type");
$cat=mysql_result($result,$i,"f.forum_name");

if (strlen($tema)>$broi_bukvi)
{$totchki='...';}
else
{$totchki='';}

$tema=substr($tema,0 , $broi_bukvi);
echo" » $cat: <a href='http://cool-tutorials.net/forum/viewtopic.php?t=$topic_id' >$tema$totchki ($topic_broi)</a><br/>";
}


?>
 
@$tema=mysql_result($result,$i,"c.topic_title");
@$id=mysql_result($result,$i,"c.forum_id");
@$topic_broi=mysql_result($result,$i,"c.topic_replies");
@$topic_id=mysql_result($result,$i,"c.topic_id");
@$topic=mysql_result($result,$i,"c.topic_type");
@$cat=mysql_result($result,$i,"f.forum_name");
 

Back
Горе