rumpels Posted August 19, 2005 Report Share Posted August 19, 2005 http://paste.php.lv/2352 Vai vainigs tas ka value ir definets ka ascii un pa garu simboliem, vai tas ka nespej tik daudz apstradat informaciju, tikai nesakiet ka nepareizi izmantota if f-ja, otrais select strada, sql viss pareizi mainigie nodefineti, bet... Link to comment Share on other sites More sharing options...
bubu Posted August 19, 2005 Report Share Posted August 19, 2005 (edited) Nesapratu kas ko nespēj sagremot? Kur tur mysql vispār kāds sakars? btw, iesaku pāriet uz UTF-8. Edited August 19, 2005 by bubu Link to comment Share on other sites More sharing options...
v3rb0 Posted August 19, 2005 Report Share Posted August 19, 2005 arprac! :) bet varbut pasaki kas tur `nestradaa` iisti? Link to comment Share on other sites More sharing options...
rumpels Posted August 19, 2005 Author Report Share Posted August 19, 2005 zinu ka utf-8 viss butu daudz vieglak, nu nav man vel uzlikts editors kursh atbalstitu, tapec 1257 ar ascii, sakars ar mysql vistiesakais - db jau atrodas ieraksti, kur pie ievades izvelos valsti andora, ieraksts veikts un saglabats, tagad velos izmainjas veikt un automatiski vajadzetu paradit ka izveleta valsts ir andora, bet neatzime nevienu option ka selected.. khm visu kodu tiesham nelikshu 1500 rindas aptuveni..bet uz localo strada ar normalu atrumu un nav ne vainas, vienigi tas ka neatpazist ka mainigais $a11 = andora_ascii_formata $query= MYSQL_QUERY("SELECT * FROM `regsys` WHERE `id` = '$skaitlis'"); while ($row = mysql_fetch_array($query)) { $id = $row["id"]; $a1 = $row["a1"]; $a2 = $row["a2"]; $a3 = $row["a3"]; $a4 = $row["a4"]; $a5 = $row["a5"]; $a6 = $row["a6"]; $a7 = $row["a7"]; $a8 = $row["a8"]; $a9 = $row["a9"]; $a10 = $row["a10"]; $a11 = $row["a11"]; $a12 = $row["a12"]; Link to comment Share on other sites More sharing options...
v3rb0 Posted August 19, 2005 Report Share Posted August 19, 2005 par utf8 redaktoru - pspad ieks windows vai quanta nixiem ar kde. varbut tomer salidzinat pec valstu id nevis nevis stringiem taa if`a un echo vietaa es rakstitu shitaa <?=($a11 == 'kaut kas')?'selected="selected"':''?> Link to comment Share on other sites More sharing options...
rumpels Posted August 19, 2005 Author Report Share Posted August 19, 2005 (edited) lietas butibu tas nemaina un neizvada vienalga, ir ta ka tos id definet ir lieks chakars bet laikam naksies darit, bet pec visa spriezhot nespej sagremot, jo shis koda gabals identisks visu atlasa pareizi, bet garais ne <select size="1" name="a12"> <option value="" <?if($a12 == ""){echo "selected";}?>>--------------------------</option> <option value="Есть" <?if($a12 == "Есть"){echo "selected";}?>>Есть</option> <option value="Нет" <?if($a12 == "Нет"){echo "selected";}?>>Нет</option> </select> zimejums te Edited August 19, 2005 by rumpels Link to comment Share on other sites More sharing options...
v3rb0 Posted August 19, 2005 Report Share Posted August 19, 2005 pieliec limit 5 galaa kverijam kas izlasa valstis, ja domaa ka tiesam liste pa garu. un echo 'a11 = '. $a11; kaut kur. Link to comment Share on other sites More sharing options...
bubu Posted August 19, 2005 Report Share Posted August 19, 2005 optionu daudzumam nevajadzētu būt problēmai. Esmu darbojies ar sarakstu, kurā ir virs 500 ierakstu. Un tas formāts nesaucās ascii, bet gan html entītes. :) Ascii ir cp1257 formāts. Link to comment Share on other sites More sharing options...
Analgiins Posted August 19, 2005 Report Share Posted August 19, 2005 a es vislaik domaaju ka lentītes :) Link to comment Share on other sites More sharing options...
des Posted August 21, 2005 Report Share Posted August 21, 2005 (edited) Pietiekoshi viegls un tajaa pashaa laikaa funkcionaals editors, kursh atbalsta utf8, ir notepad2. Taa kaa vinjsh aiznjem tikai 242kb, tad vinju vienmeer ir eerti ljoti aatri uzlikt pat pie ljoti leena interneta piesleeguma. Nu vismaz es to notepad2 diezgan biezhi izmantoju. Edited August 21, 2005 by des Link to comment Share on other sites More sharing options...
Recommended Posts