title: Show Zodiac Sign using Birthday in PHP
body: <p>I'm working on a project using EasySocial. For those of you who don't know EasySocial is a social networking extension for joomla.</p>
  
  <p>On the profile page they show Birthday of the users (Ex: 28 April 1989) the code used is below:</p>
  
  <pre><code>&lt;?php echo $this-&gt;render( 'fields' , 'user' , 'profile' , 'profileHeaderA' , array( 'BIRTHDAY' , $user ) ); ?&gt;
  </code></pre>
  
  <p>I want to show zodiac sign next to the Birthday using the following php code:</p>
  
  <pre><code>   if     ( ( $month == 3 &amp;&amp; $day &gt; 20 ) || ( $month == 4 &amp;&amp; $day &lt; 20 ) ) { $zodiac = "Aries"; } 
     elseif ( ( $month == 4 &amp;&amp; $day &gt; 19 ) || ( $month == 5 &amp;&amp; $day &lt; 21 ) ) { $zodiac = "Taurus"; } 
     elseif ( ( $month == 5 &amp;&amp; $day &gt; 20 ) || ( $month == 6 &amp;&amp; $day &lt; 21 ) ) { $zodiac = "Gemini"; } 
     elseif ( ( $month == 6 &amp;&amp; $day &gt; 20 ) || ( $month == 7 &amp;&amp; $day &lt; 23 ) ) { $zodiac = "Cancer"; } 
     elseif ( ( $month == 7 &amp;&amp; $day &gt; 22 ) || ( $month == 8 &amp;&amp; $day &lt; 23 ) ) { $zodiac = "Leo"; } 
     elseif ( ( $month == 8 &amp;&amp; $day &gt; 22 ) || ( $month == 9 &amp;&amp; $day &lt; 23 ) ) { $zodiac = "Virgo"; } 
     elseif ( ( $month == 9 &amp;&amp; $day &gt; 22 ) || ( $month == 10 &amp;&amp; $day &lt; 23 ) ) { $zodiac = "Libra"; } 
     elseif ( ( $month == 10 &amp;&amp; $day &gt; 22 ) || ( $month == 11 &amp;&amp; $day &lt; 22 ) ) { $zodiac = "Scorpio"; } 
     elseif ( ( $month == 11 &amp;&amp; $day &gt; 21 ) || ( $month == 12 &amp;&amp; $day &lt; 22 ) ) { $zodiac = "Sagittarius"; } 
     elseif ( ( $month == 12 &amp;&amp; $day &gt; 21 ) || ( $month == 1 &amp;&amp; $day &lt; 20 ) ) { $zodiac = "Capricorn"; } 
     elseif ( ( $month == 1 &amp;&amp; $day &gt; 19 ) || ( $month == 2 &amp;&amp; $day &lt; 19 ) ) { $zodiac = "Aquarius"; } 
     elseif ( ( $month == 2 &amp;&amp; $day &gt; 18 ) || ( $month == 3 &amp;&amp; $day &lt; 21 ) ) { $zodiac = "Pisces"; } 
  </code></pre>
  
  <p>How do I achieve this?? Easysocial support doesn't offer customizations so can't use their help, please help!! :(</p>