AAARrrrrrgggggg......... Well Thanks to
Ken, I was able to put the phase of the moon on my site:
Now, I would like to include a picture of the phases like this:
I've created all of the pictures; however, I can't get the php to work because the script that is creating the phase name is over my head (its not using regular arrays).
Here is the code that generates the phase name (above):
<?php echo , $mp->getPhaseName(); ?>
The code is using info from moon-phase.cls.php by "requiring" it with this code at the top of my page:
<?php
require 'moon-phase.cls.php';
$dateAsTimeStamp = ''; // no need to pass the date if you want to use the current date
$mp = new moonPhase($dateAsTimeStamp);
?>
Here is moon-phase.cls.php:
moon-phase.cls.phpCan anyone help a poor lost soul? Is there a simple way that I can display a picture depending upon what the script shows as the "Phase Name". I'm stumped?!?