lizard Posted February 25, 2007 Report Share Posted February 25, 2007 Man no datubazes vajag dabut tekstu, un es to shada veida daru, kas varetu but pa problemu ka vinsh neizvada visu ara bet apgirezh, itka nogrieztu noteiktu simbolu daudzumu? Mosh kads limits? $res = mysql_query("Select * from backup ORDER BY id DESC LIMIT 1");while($arr = mysql_fetch_assoc($res)) { print("<textarea name='data' value='data' cols='100' rows='20'>".$arr["kaka"]."</textarea>"); } Link to comment Share on other sites More sharing options...
bubu Posted February 25, 2007 Report Share Posted February 25, 2007 Varbūt pašā datubāzē jau esi ielicis apgraizītu tekstu? Apskaties ko izvada selekts konsolē vai kādā GUI klientā. Link to comment Share on other sites More sharing options...
rpr Posted February 26, 2007 Report Share Posted February 26, 2007 pasties kas db ir pa datu tipu tai kolonai un noskaidro cik daudz tajaa var iegruuzt. Link to comment Share on other sites More sharing options...
cucumber Posted February 26, 2007 Report Share Posted February 26, 2007 (edited) Gan jau Varchar staveja pec noklusejuma pamegini alter tabli ALTER TABLE `backup` CHANGE `kaka` `kak` TEXT CHARACTER SET tavscharsets COLLATE tavscharsets NOT NULL tavscharsets = utf8_latvian_ci un tad pamegini ierakstit garu text'u un izvadit vai nogriezis tad? Edited February 26, 2007 by cucumber Link to comment Share on other sites More sharing options...
lizard Posted February 26, 2007 Author Report Share Posted February 26, 2007 Ne staveja text, tip bez ierobezhojuma, lieta jau tada ka tesksts saglabajas bet ara neizvadas pilniba ntekti kkads limits bija, nu, bet es sagriezu teksti izvadot pa daljam un pectam saliku mainigos kopa un sanaca viss ka vajag :) Link to comment Share on other sites More sharing options...
andrisp Posted February 26, 2007 Report Share Posted February 26, 2007 Hmm.. kurā brīdi tu veici to sagriešanu pa daļām ? MySQL pusē ? Link to comment Share on other sites More sharing options...
Recommended Posts