hata aldım hatada şu
Parse error: syntax error, unexpected T_IF in /home/misafirn/public_html/ornek/index.php on line 72
hatayı da görmek istersen
www.misafirnet.com/ornek/index.php <?php
include("db.php");
$sorgu2=mysql_query("SELECT * FROM yazilar");$kactane=mysql_num_rows($sorgu2);
$sayfa=$_GET['sayfano'];$gosterim=4;$sayfasayisi=ceil($kactane/$gosterim);if($sayfa>$sayfasayisi || $sayfa<1 || !is_numeric($sayfa)){$sayfa=1;}$son = ($sayfa-1)*$gosterim;
$sorgu=mysql_query("SELECT * FROM yazilar LIMIT $son,$gosterim");
while($verilerimiz=mysql_fetch_array($sorgu)){
$baslik=$verilerimiz['baslik'];
$tarih=$verilerimiz['tarih'];
$id=$verilerimiz['id'];
$elm1=$verilerimiz['elm1'];
$elm2=wordwrap($elm1,85,"<br />\n",true);
if(strlen($elm2) > 52)
{
echo ''.substr($elm2,0,52).' » Devamını Oku';
}
else
{
echo $elm2;
}
echo " <div align='center'>
<table border='0' cellpadding='0' cellspacing='0' width='42%' height='212' id='table1'>
<tr>
<td height='19' width='40'><b>Tarih</b></td>
<td height='19' width='7'>:</td>
<td height='19'><font color='#008000'>$tarih</font></td>
</tr>
<tr>
<td height='19' width='40'><b>Başlık</b></td>
<td height='19' width='7'>:</td>
<td height='19'><b><font color='#FF0000'>
<a href='oku.php?id=$id' style='text-decoration: none'>
<font color='#000000'>$baslik</font></a></font></b></td>
</tr>
<tr>
<td align='left' valign='top' width='40'><b>Makale</b></td>
<td align='left' valign='top' width='7'>:</td>
<td align='left' valign='top'>$elm2</td>
</tr>
</table>
</div>
";
}
$sayi=1;
echo "SAYFALAR:|";
while($sayi<=$sayfasayisi){
if($sayi==$sayfa){
echo "
<a style='cursor:not-allowed;' title='ZATEN BU SAYFADASINIZ'><font color='purple'> $sayi</font></a> |
";
}else{
echo "
<a href='index.php?sayfano=$sayi' style='text-decoration:none;'><font color='purple'> $sayi</font></a> |
";
}//if sonu
$sayi++;
}//döngü sonu
?>Bide Bunu Dene Ama Olması Lazım