• 14-05-2008, 22:49:35
    #10
    Üyeliği durduruldu
    select * from
    yada select sutun_adi from
    yani select den sonra hem * kullanıp hem sütun adı yazamassın....
  • 15-05-2008, 00:27:16
    #11
    Tüm sayfamdaki kodu kopyalıyorum:

    <?php require_once('Connections/proje.php'); ?>

    <?php
    $makale1 = mysql_query("select articles.title, articles.author_id,users.username, users.id from articles,users where articles.author_id=users.id order by articles.title desc");
    while($row=mysql_fetch_object($makale1)){
    echo $row['articles.title'];
    echo $row['users.username'];
    }
    ?>

    Explorerda aldığım hata :

    Parse error: parse error, unexpected '{' in C:\Users\Lacivert\PHP\www\proje\deneme.php on line 5

    Line 5 while komutunun olduğu satıra denk geliyo.
  • 15-05-2008, 21:37:26
    #12
    Yok mu yardım edecek bir arkadaş =)
  • 16-05-2008, 10:18:50
    #13
    Üyeliği durduruldu
    while($row=mysql_fetch_object($makale1)){
    değiştir
    while($row=mysql_fetch_array($makale1)){

    olmazsa tekrar bakalım.
  • 17-05-2008, 20:59:24
    #14
    sweatcell adlı üyeden alıntı: mesajı görüntüle
    while($row=mysql_fetch_object($makale1)){
    değiştir
    while($row=mysql_fetch_array($makale1)){
    olmazsa tekrar bakalım.
    olmadı şimdide bu hatayı aldım:


    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Users\Lacivert\PHP\www\projeeski\deneme.php on line 5
  • 17-05-2008, 22:58:34
    #15
    Misafir adlı üyeden alıntı: mesajı görüntüle
    olmadı şimdide bu hatayı aldım:


    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Users\Lacivert\PHP\www\projeeski\deneme.php on line 5
    tablonda hata olabilir
    Alıntı
    $makale1 = mysql_query("select articles.title, articles.author_id,users.username, users.id from articles,users where articles.author_id=users.id order by articles.title desc");
    burdakilerin hepsinin ismini ve olduklarını kontrol etsen hata olabilir