Jump to content
php.lv forumi

Kas pa vainu?


lizard

Recommended Posts

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

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 by cucumber
Link to comment
Share on other sites

×
×
  • Create New...