$month = Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); $date =time () ; //This puts the day, month, and year in seperate variables $day = date('d', $date) ; $month = date('m', $date) ; $year = date('Y', $date) ; FOR($i=0,$i<11,$i++); { IF(date('m', $date)===$mn[$i]) { ECHO 'this is correct'; } } for($i=1,$i=12,$i++){ if(........){ echo 'image'; } } what conition i have to write in if statement as month changes image should change..on top of calander
i want the code...in which i have to impliment it in calander plugin...so that as day changes the image has to change
Do you mean you have 12 images for 12 month and you want to display each image depend on what date is, right? I figure the easiest way is you have 12 images like: 01.png, 02.png, ..., 12.png. Then the code is just as simple as $mm=date('m'); echo "<img src='$mm.png'>"; Code (markup):
can anyone pls help me how to write code for option pages for plugins in which it has to upload images and date to that particular image...actual idea is the logo of website has to change when date is changes as per system...
i want the code for data picker...and most important thing is how to link that date to the image if we upload it