select * from
yada select sutun_adi from
yani select den sonra hem * kullanıp hem sütun adı yazamassın....
Mysql eşleştirme ?
14
●1.993
- 15-05-2008, 00:27:16Tü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. - 17-05-2008, 20:59:24olmadı şimdide bu hatayı aldım:sweatcell adlı üyeden alıntı: mesajı görüntüle
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:34tablonda hata olabilirMisafir adlı üyeden alıntı: mesajı görüntüle
burdakilerin hepsinin ismini ve olduklarını kontrol etsen hata olabilirAlıntı