djmartins Posted November 16, 2005 Report Share Posted November 16, 2005 Taa tad datubaaze man ir id text cat. 1 meza ruki skrien pa ielu ASV Es veletos lai vienaa lapaa man izvadiitu visus textus no sis vienas kategorijas kaa tas butu izdarams? Link to comment Share on other sites More sharing options...
v3rb0 Posted November 16, 2005 Report Share Posted November 16, 2005 selektē visus vienas kategorijas tekstus.. select * from texti where categrory_id=1 Link to comment Share on other sites More sharing options...
djmartins Posted November 16, 2005 Author Report Share Posted November 16, 2005 Man jau category_id nav man jau ir tikai category nosaukums!Kaa tad? Link to comment Share on other sites More sharing options...
ohmygod Posted November 16, 2005 Report Share Posted November 16, 2005 LOL mysql_query("select * from texti where cat='$cat' ") Link to comment Share on other sites More sharing options...
djmartins Posted November 16, 2005 Author Report Share Posted November 16, 2005 Tad taa ari vajag rakstit :) Link to comment Share on other sites More sharing options...
DarkSide Posted November 16, 2005 Report Share Posted November 16, 2005 Nee nu tas ir par trulu - tak tik elementaaras lietas kaa pashu primitiivaako SQL teikumu sastaadiishana buutu pamatskolaa jaamaca :) Link to comment Share on other sites More sharing options...
djmartins Posted November 16, 2005 Author Report Share Posted November 16, 2005 Dzeki kaut kas neiet formulesu savaadak! Man ir db cat kuraa ir rows id|text|cat| pie cat ir sadi rows Leni|Berni|zeni|meemi| un man vajadzetu lai no cat |Beerni| tikai izvadiitu ara esosos textus un parejas cat neaiztiktu! Link to comment Share on other sites More sharing options...
bubu Posted November 16, 2005 Report Share Posted November 16, 2005 Tak tev jau saka: SELECT * FROM tabule WHERE cat='Beerni' Link to comment Share on other sites More sharing options...
djmartins Posted November 16, 2005 Author Report Share Posted November 16, 2005 tnx bubu viss aizgaja! Link to comment Share on other sites More sharing options...
Recommended Posts