gkazhus Posted May 7, 2013 Report Share Posted May 7, 2013 Taatad meeginu izveidot lai man bildes nosaukums buutu taads pats kaa virsraksts - item-title bet taa vietaa es sanjemu shaadu izvadu: <img src="/uploads/Egles" ciekurs.jpg"="" class="image" alt="" style="background-color: rgb(245, 111, 20); width: 160px; height: 160px; display: block;" data-lazy-loaded="true"> Kaa lai es sho - Egles" ciekurs.jpg parversu Egles ciekurs.jpg Kods: $image='<img src="/uploads/'.$arr['item-title'].'.jpg" class="image" alt="" style="'.$image_style.$item_style.' width: '.$w.'px; height: '.$h.'px;" />'; Quote Link to comment Share on other sites More sharing options...
Kavacky Posted May 7, 2013 Report Share Posted May 7, 2013 Uploadojot uztaisi bildei normālu un droši faila nosaukumu, oriģinālo vari tikai zināšanai pieglabāt. Un, kad izvadi title, tad dari to ar htmlspecialchars. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.