ezs Posted January 7, 2004 Report Share Posted January 7, 2004 man but Msql db viss notiek vienkaarsi perfekti bet kaa var panaakt to ka parluukaa izdrukaa tikai noteiktu daudzumu simbolus piemeeram 2000 :blink: Link to comment Share on other sites More sharing options...
hu_ha Posted January 7, 2004 Report Share Posted January 7, 2004 http://www.mysql.com/documentation/maxdb/7...261/content.htm Link to comment Share on other sites More sharing options...
ezs Posted January 7, 2004 Author Report Share Posted January 7, 2004 Un tas viss tikai sprotamaak buutu kaa Tur vis tik saredziti :blink: Link to comment Share on other sites More sharing options...
hu_ha Posted January 7, 2004 Report Share Posted January 7, 2004 nu ir divi varianti: 1) vaacot aara no sql njemt tikai nepiecieshamos simbolus SELECT substring(text,1,3) as txt FROM tabula 2) apstraadaat stringu peec sql vaicaajuma ar php paliidziibu $txt- peec vaicaajuma ieguutais strings $apgrieztais_strings=substr($txt,1,3) un linkaa bik noshaavu greizi uz maxDB, bet ideja jau taa pati substr==substring :) Link to comment Share on other sites More sharing options...
des Posted January 7, 2004 Report Share Posted January 7, 2004 Ko Tu domaa ar 2000 simboliem? Tjipa pirmos 2000 simbolus no html koda? Pirmos 2000 simbolus no kaada selecta rezultaaata? Pirmaas 2000 rindinjas? Pirmos 2000 simbolus no konkreeta lauka? Lai arii kaads buutu gadiijums (iznjemot 2000 rindinjas :), risinaajums ir $text2k=substr($text,0,2000); ...... echo $text2k; //vai whatever.... Link to comment Share on other sites More sharing options...
ezs Posted January 8, 2004 Author Report Share Posted January 8, 2004 palies tos 2000 symbolus no raow :blink: Link to comment Share on other sites More sharing options...
Recommended Posts