• 21-05-2013, 00:07:21
    #1
    Parse error: syntax error, unexpected T_IF in /home/hademe/public_html/index.php on line 46


    <li><a href="index<?php echo $print['seourl']; ?>">Anasayfa</a></li>
    <?php $aaa = mysql_query("select * from page order by sira asc"); while($bbb = mysql_fetch_array($aaa) if($print['seourl']==".php") ?>
    <li><a href="page.php?url=<?php echo $bbb['seolink']; ?>"><?php echo $bbb['post_title']; ?></a></li>
    <?php }elseif($print['seourl']==".html"){ ?>
    <li><a href="sayfa-<?php echo $bbb['seolink']; ?>.html"><?php echo $bbb['post_title']; ?></a></li>
    <?php } } ?>
    <li class="last"><a href="iletisim<?php echo $print['seourl']; ?>">İletişim</a></li>
  • 21-05-2013, 00:11:15
    #2
    Php kodunuzda yazım yanlışı var.

    index.php dosyasını yazarsanız hatanın nerede olduğunu söyleyebiliriz.

    --R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 00:11:15 -->-> Daha önceki mesaj 00:09:47 --

    HaDeme adlı üyeden alıntı: mesajı görüntüle
    Parse error: syntax error, unexpected T_IF in /home/hademe/public_html/index.php on line 46


    <li><a href="index<?php echo $print['seourl']; ?>">Anasayfa</a></li>
    <?php $aaa = mysql_query("select * from page order by sira asc"); while($bbb = mysql_fetch_array($aaa) if($print['seourl']==".php") ?>
    <li><a href="page.php?url=<?php echo $bbb['seolink']; ?>"><?php echo $bbb['post_title']; ?></a></li>
    <?php }elseif($print['seourl']==".html"){ ?>
    <li><a href="sayfa-<?php echo $bbb['seolink']; ?>.html"><?php echo $bbb['post_title']; ?></a></li>
    <?php } } ?>
    <li class="last"><a href="iletisim<?php echo $print['seourl']; ?>">İletişim</a></li>

    Kodunuzu aşağıdak kodla değiştirin lütfen.

    <li><a href="index<?php echo $print['seourl']; ?>">Anasayfa</a></li>
    <?php $aaa = mysql_query("select * from page order by sira asc"); while($bbb = mysql_fetch_array($aaa){ if($print['seourl']==".php"){ ?>
    <li><a href="page.php?url=<?php echo $bbb['seolink']; ?>"><?php echo $bbb['post_title']; ?></a></li>
    <?php }elseif($print['seourl']==".html"){ ?>
    <li><a href="sayfa-<?php echo $bbb['seolink']; ?>.html"><?php echo $bbb['post_title']; ?></a></li>
    <?php } } ?>
    <li class="last"><a href="iletisim<?php echo $print['seourl']; ?>">İletişim</a></li>