imop Posted November 12, 2008 Report Share Posted November 12, 2008 (edited) Lapai ir trīs valodas viss skaisti straadaa utt, bet gribu lai teksta vietaa raadiitos bilde katrai valodai, nemaaku uztaisiit, neesmu PHP specs. bet iesaaceejs gribaas arii taa lai links buutu iekhaa! <?php switch ($va){ case "lv": echo("Koks"); break; case "ru": echo("Дерево"); break; case "en": echo("Tree"); break; } ?> Paldies jau ieprieksh! Edited November 12, 2008 by imop Link to comment Share on other sites More sharing options...
Java Posted November 12, 2008 Report Share Posted November 12, 2008 Jopcik popcik, tu katru tekstu savai valodai taisi? Klau, ja nav noslēpums - taisi komerpasūtījumu vai savu projektu? Link to comment Share on other sites More sharing options...
andrisp Posted November 12, 2008 Report Share Posted November 12, 2008 Šitā kaut kā? <a href="#"><img src="tree_<?php echo $va; ?>.jpg" /></a> Un tad jāsataisa trīs bildītes: tree_en.jpg, tree_ru.jpg un tree_lv.jpg Link to comment Share on other sites More sharing options...
imop Posted November 12, 2008 Author Report Share Posted November 12, 2008 Jopcik popcik, tu katru tekstu savai valodai taisi? Klau, ja nav noslēpums - taisi komerpasūtījumu vai savu projektu? Izpaliidzu comam kuram lapa ir tad nu ciinamies abi galvas salikushi! Vienkaarshi to lapu senum sen saveidoja vinjam tad nu tagad mazliet jaapielabo utt izdomaajaam pacakareeties. Link to comment Share on other sites More sharing options...
imop Posted November 12, 2008 Author Report Share Posted November 12, 2008 Šitā kaut kā? <a href="#"><img src="tree_<?php echo $va; ?>.jpg" /></a> Un tad jāsataisa trīs bildītes: tree_en.jpg, tree_ru.jpg un tree_lv.jpg Liels paldies! Link to comment Share on other sites More sharing options...
rpr Posted November 12, 2008 Report Share Posted November 12, 2008 Jopcik popcik, tu katru tekstu savai valodai taisi? Klau, ja nav noslēpums - taisi komerpasūtījumu vai savu projektu? a kaa tu domaaji "katru tekstu savai valodai"? vai tad var dazjaadaam valodaam vienu tekstu? Link to comment Share on other sites More sharing options...
Java Posted November 12, 2008 Report Share Posted November 12, 2008 a kaa tu domaaji "katru tekstu savai valodai"? vai tad var dazjaadaam valodaam vienu tekstu? Paskaties uz kodu, ko viņš uzrakstījis un tad padomā par kontekstu... Link to comment Share on other sites More sharing options...
anonīms Posted November 12, 2008 Report Share Posted November 12, 2008 izmanto array Link to comment Share on other sites More sharing options...
Recommended Posts