• 15-09-2019, 00:24:05
    #1
    Kurumsal Üye | R10 19.YIL
    $uresim = $row_detay['urun_id'];
    
    mysql_select_db($database_config, $config);
    $query_resim = "SELECT * FROM urun_resimleri where urun = $uresim";
    $resim = mysql_query($query_resim, $config) or die(mysql_error());
    $row_resim = mysql_fetch_assoc($resim);
    $totalRows_resim = mysql_num_rows($resim);
    Merhaba urunler tablomdaki urun_id sütunu ve urun_resimleri tablomdaki urun sütununa eşit olan resimleri listeledim.
    Ancak urun_resimleri tablomda proje_id diye bir sütun daha mevcut onuda kendi içerisinde ayrıştımak için nasıl bir select sorgu belirtmeliyim arkadaşlar çözemedim?

    $query_resim = "SELECT * FROM urun_resimleri where urun = $uresim"; BURAYA EK OLARAK proje_id 1 ise listele
  • 15-09-2019, 00:26:17
    #2
    Platin üye
    $query_resim = "SELECT * FROM urun_resimleri where urun = $uresim and proje_id=1"
  • 15-09-2019, 00:29:43
    #3
    Kurumsal Üye | R10 19.YIL
    OziyWeb adlı üyeden alıntı: mesajı görüntüle
    $query_resim = "SELECT * FROM urun_resimleri where urun = $uresim and proje_id=1"
    Sayfa HTTP ERROR 500 hatası veriyor hocam.



    OziyWeb adlı üyeden alıntı: mesajı görüntüle
    $query_resim = "SELECT * FROM urun_resimleri where urun = $uresim and proje_id=1"
    Halloldu pardon cpde ; eklemeyi unutmuşum teşekkürler