spynode Posted April 11, 2004 Report Share Posted April 11, 2004 Nu teiksim, ja es mekleeju ar kverija paliidziibu kaadaa tabulaa mekleejamo stringu es rakstiitu shitaa : Select * from komenti where teksts like '$meklejamais_strings' Bet, ja man vajadzeetu, lai vinjsh skataas peec kartas visos laukos vai tur ir meklejamais strings,m ka man butu jaaraksta ? Kautkaa apm. shitaa ? : Select * from komenti where texts or nosaukums or autors or emails like '$meklejamais_strings' ? Link to comment Share on other sites More sharing options...
Vistu Zaglis Posted April 11, 2004 Report Share Posted April 11, 2004 Ir tāds navarots, kā "FULLTEXT". Tev viņš patiks. Mhm! :) Link to comment Share on other sites More sharing options...
spynode Posted April 12, 2004 Author Report Share Posted April 12, 2004 Tnx! Tagad veelviens jautaajums. Es saprotu kaa ar LIMIT paliidziibu var paradiit teiksim pirmos 10, bet kaa lai panaak , ka vinjs raada saakot no desmitaa liidz galam? Link to comment Share on other sites More sharing options...
bubu Posted April 12, 2004 Report Share Posted April 12, 2004 manuaalii jaaskataas, tur viss aprakstiits: SELECT * FROM table LIMIT 10,-1 Link to comment Share on other sites More sharing options...
spynode Posted April 12, 2004 Author Report Share Posted April 12, 2004 Tad piereizes veelviena probleema : Ir shitaads kverijs - $meklet_kverijs = mysql_query("SELECT *, MATCH(virsraksts, iesakums, raksts) AGAINST('$meklejamais') AS id FROM raksti WHERE MATCH(virsraksts, iesakums, raksts) AGAINST('$meklejamais') ORDER BY id DESC"); Ja datubaazee ir tikai viens raksts, kuraa iesaakums, virsraksts, vai raksta teksts sakriit ar mekleejamo vaardu , tad vinjsh sho vienu rezultaatu arii paraad, bet ja ir vairaaki raksti kas sakriit ar mekleejamo vaardu, tad vinjs neparaada vispaar nevienu. Vot shito es neiebraucu. Link to comment Share on other sites More sharing options...
Recommended Posts