PHP קוד:
<?php
if( strlen( $output["yyy"] ) >= 150 )
{
$text = substr( $output["yyy"], 0, 100 ) .'...';
}
$query = mysql_query("SELECT `yyy`,`xxx`,`mmm`,`id` FROM `www` ORDER BY `id` DESC LIMIT 6") or die(mysql_error());
$count = 0;
while ($output = mysql_fetch_array($query))
{
$count++;
echo '
<a href="article.php?id='.$output['id'].'">
<div class="game"' .($count % 2 == 0 ? ' style="margin-right:70px;"' : ''). '>
<div class="pic">
<img src="'.$output['mmm'].'" alt=""/>
</div>
<div class="right2">
<span>'.$output['xxx'].'</span>
<p>
'.$output ['yyy'].'
</p>
</div>
</div>
</a>
';
}
?>
זה הקוד שיש לי, עכשיו הבעיה היא שהוא לא עובד ולא מציג לי שום שגיאה, יש למישהו רעיון למה זה לא מציג את הבעיה?