tk1 Posted April 20, 2007 Report Share Posted April 20, 2007 Sveiki. ka es varu dabut lai <div align="left">{player_name}</div> {player_name} butu maxsimums pieci burti, parejos vienk nerada vai rada punktu! Link to comment Share on other sites More sharing options...
Vebers Posted April 20, 2007 Report Share Posted April 20, 2007 $playerName = substr($playerName, 0, 5); Link to comment Share on other sites More sharing options...
Grey_Wolf Posted April 20, 2007 Report Share Posted April 20, 2007 (edited) <div align="left"><?php echo substr("player_name", 0, 5); ?></div> Edited April 20, 2007 by Grey_Wolf Link to comment Share on other sites More sharing options...
tk1 Posted April 20, 2007 Author Report Share Posted April 20, 2007 Grey_Wolf tava varianta vinjs vsp negrib neko radit. kas varetu but? Link to comment Share on other sites More sharing options...
marrtins Posted April 20, 2007 Report Share Posted April 20, 2007 Grey_Wolf tava varianta vinjs vsp negrib neko radit. kas varetu but? *negrib* :D vot spītējas, maita Link to comment Share on other sites More sharing options...
Grey_Wolf Posted April 20, 2007 Report Share Posted April 20, 2007 tk1 --> tev vispaar php iet? Vai arii to kodu esi izlaidis caur mistisku template enginu.... Bet taa jau ir tava probleema, jo kods straadaa... Link to comment Share on other sites More sharing options...
Stopp Posted April 20, 2007 Report Share Posted April 20, 2007 Varbūt tas, ka tk1 grib, lai "player_name" vietā būtu kaut kāds variablis ($player_name?). Bet, protams, šeit iederas vecais, labais teiciens par kristāla bumbu. Link to comment Share on other sites More sharing options...
andrisp Posted April 20, 2007 Report Share Posted April 20, 2007 Viņš droši vien kaut kādu Smarty izmanto. Pirms padod smartijam player_name mainīgo, izlaido to caur substr, kā jau Grey_Wolf to jau teica. Link to comment Share on other sites More sharing options...
4e4en Posted April 21, 2007 Report Share Posted April 21, 2007 defaultā smartijam mainīgie ir savādākā formā: {$mans_varablis} jo tur parasti mainīgajiem priekšā ir $ Link to comment Share on other sites More sharing options...
andrisp Posted April 21, 2007 Report Share Posted April 21, 2007 Nu tas jau vienalga kuru sistēmu viņš izmanto, apstrādāt mainīgo tāpat vajag pirms padošanas. Link to comment Share on other sites More sharing options...
tk1 Posted April 24, 2007 Author Report Share Posted April 24, 2007 paldies sanaca. Vienk tizlums nogalina. tas fails pat php fails nebija :/ betnu tgd partaisiju un iet! Link to comment Share on other sites More sharing options...
Recommended Posts