xfr33 Posted December 23, 2008 Report Share Posted December 23, 2008 Labdien! Ir forma, no kuras iegūst datus. Nākamajā lapā parāda. Kā var, lai piemēram lauka 'name' datus rāda bez pēdējā burta? Piemērs. Laukā ierakstīts: Jānis Nākamajā lapā parāda: Jāni Paldies jau iepriekš :) Link to comment Share on other sites More sharing options...
Aleksejs Posted December 23, 2008 Report Share Posted December 23, 2008 http://lv.php.net/manual/en/function.substr.php If length is given and is negative, then that many characters will be omitted from the end of string Link to comment Share on other sites More sharing options...
xfr33 Posted December 23, 2008 Author Report Share Posted December 23, 2008 Paldies :) Link to comment Share on other sites More sharing options...
andrisp Posted December 23, 2008 Report Share Posted December 23, 2008 xfr33, "Sveiks, Jāni!"? :) Un ja būs "Liene", vai "Zane" ? Link to comment Share on other sites More sharing options...
xfr33 Posted December 23, 2008 Author Report Share Posted December 23, 2008 Vēl viens jautājums - OFFTOPIC. Ir daudzi mainīgie. Piemēram: $a = '1'; $b = '2'; $c = '3'; Vajadzīgs ir lai parādītos tikai viens un viņi randomā mainītos. Kāds var palīdzēt? :) Link to comment Share on other sites More sharing options...
xfr33 Posted December 23, 2008 Author Report Share Posted December 23, 2008 andri, tas bija tikai piemērs :) Link to comment Share on other sites More sharing options...
Klez Posted December 23, 2008 Report Share Posted December 23, 2008 man liekas ka praatiigaak ir tos mainiigos masiivaa tureet: $a[] = 'jaanis'; $a[] = 'zane'; $a[] = 'peeteris'; //un tad ar $cik = count($a) -1; echo $a[rand(0,$cik)]; Link to comment Share on other sites More sharing options...
Squad Posted December 23, 2008 Report Share Posted December 23, 2008 Neaizmirsti notestēt vārdu 'Zvaniņš' ;) Link to comment Share on other sites More sharing options...
xfr33 Posted December 23, 2008 Author Report Share Posted December 23, 2008 Paldies liels :) Link to comment Share on other sites More sharing options...
xfr33 Posted December 23, 2008 Author Report Share Posted December 23, 2008 Un atkal Oftopiks. Negribu veidot entos topikus. :) Pavisam vienkārš jautajums. Kā var atstāt vertikālo skrolleru divam, bet aizliegt horizontālo? Lai visu, kas ir horizontāli garāks, met jaunā rindā! Link to comment Share on other sites More sharing options...
Squad Posted December 23, 2008 Report Share Posted December 23, 2008 overflow-y: auto vai overflow-y: scroll Link to comment Share on other sites More sharing options...
Recommended Posts