Click here to Skip to main content
15,879,490 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello I created a basic code here and I manage to parse the src image. here my code:



';


?>




I manage to view the image using code above hoever the images has 24 files with numbered each from 1 - 24

wpac_1.png
wpac_2.png

so on and so forth to

wpac_24.png

How should I make them to slide show if im going to start read from

echo '';


Thanks and regards

What I have tried:

<?php

//Years
  $prevYear = date("Y")-1;
  $currYear = date("Y");
  $nextYear = date("Y");
//will give you the same things too : "Dec2010" (. is for concatenation in PHP)

//Months
  $prevMonth = date("m")-1;
  $currMonth = date("m");
  $nextMonth = date("m");
//will give the same value for the 3 variables 2021051918

//Days
  $prevDay = date("d")-1;
  $currDay = date("d");
  $nextDay = date("d");
//will give the same value for the 3 variables 2021051918

echo '<img src="https://myImage/analysis/models/gfs/'.$currYear.''.$currMonth.''.$prevDay.'18/wpac_1.png"/>';


?>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900