Merhaba Arkadaşlar Benim Bir Veritabanım Var Bu Veritabanında Stok Tablosunda Ürün adım beden ve renk sütunlarım mevcut diğer tablom stokfiyati kısmında ürün fiyatlarım var ve son olarak birde stokresim tablom var bundada resim1 bölümünde ürün resimlerim var bunları aynı ürün bilgileri olarak eşleştirip sitede yayınlatmak istiyorum
Bu Ürünleri Nasıl Eşleştirebilirim
Kullandığım Kodlar Aşağıdaki Gibidir.
<!-- #include file="baglanti.asp" -->
<% set urunana=baglanti.execute("select * from stok where sinifkodu2 order by StokId asc limit 100") %>
<% if not urunana.eof then %>
<% do while (not urunana.eof) %>
<% y=y+1%>
<% set urunresim=baglanti.execute("select * from stokresim where resim1 order by Id asc limit 100") %>
<% if not urunresim.eof then %>
<% do while (not urunresim.eof) %>
<% y=y+1%>
<% set stokfiyat=baglanti.execute("select * from stokfiyati where Fiyat order by StokId asc limit 100") %>
<% if not stokfiyat.eof then %>
<% do while (not stokfiyat.eof) %>
<% y=y+1%>
<p><a href="<%=urunana("link")%>.html"><img src="uplfiles/o_<%=urunresim("resim1")%>" width="178" height="174" /></a></p>
<p><%=urunana("aciklama")%><%=stokfiyat("Fiyat")%></p>
<p> </p>
<p>
<%
urunana.movenext
loop
%>
<%else%>
<%end if%>
<%
urunresim.movenext
loop
%>
<%else%>
<%end if%>
<%
stokfiyat.movenext
loop
%>
<%else%>
<%end if%>