GeRik Posted June 5, 2009 Report Share Posted June 5, 2009 vai ir iespejams partaisit sho skriptu ta lai tas izvelas nevis pec datuma bet uz halavu kadu bildi no mapes <a href="bildes/bilde_<?php echo date("d"); ?>.jpg"><img src="bildes/bilde_<?php echo date("d"); ?>.jpg" alt="bilde" style="width : 150px; height : 150px;"/></a> Quote Link to comment Share on other sites More sharing options...
bubu Posted June 5, 2009 Report Share Posted June 5, 2009 Ar glob funkciju dabū masīvu ar bildēm no vajadzīgās direktorijas. Un tad ar array_rand funkciju izvēlies vienu no šīm bildēm, kuru attiecīgi tad arī izdrukā savā uzrakstītajā HTML kodā. 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.