Rados Posted September 7, 2011 Report Share Posted September 7, 2011 Sveiki , īsi un konkrēti- aptaujas skriptam iekš tabulā vajag ieģenerēt bildi Rekur kods http://paste.php.lv/4b5e0dfaff5b0601971ce7a627b9d08a?lang=php rekur $krasa = "#5aa12d"; krāsas vietā man vajag bildi Rekur bildes piemērs http://www.bildites.lv/images/ddeeaa2wbtivbnjj4ng.png Link to comment Share on other sites More sharing options...
Vecteevs Posted September 7, 2011 Report Share Posted September 7, 2011 (edited) šādi nevar? $krasa="<img src='bilde.jpg' />"; Edited September 7, 2011 by Vecteevs Link to comment Share on other sites More sharing options...
Vilsol Posted September 7, 2011 Report Share Posted September 7, 2011 (edited) Iedod visu kodu, jo tevis iedotajā mainīgais $krasa ir tiaki norādīts bet netiek izmantots... PS. Pieņemsim ka viņa izvadīšana ir tāda: echo '<span style="color:'.$krasa.';">' Tad ar tavu variantu butu: echo '<span style="color:'<img src='bilde.jpg' />;">' Edited September 7, 2011 by Vilsol Link to comment Share on other sites More sharing options...
Rados Posted September 8, 2011 Author Report Share Posted September 8, 2011 (edited) Rekur šis te variants strādā $krasa = "url('http://kakulācis.lv/style/images/poll_2.gif') repeat; Edited September 8, 2011 by Rados Link to comment Share on other sites More sharing options...
Recommended Posts