Php Code To Get Zodiac Sign

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Php Code To Get Zodiac Sign

    Here is a function to get zodiac sign
    Code:
    function getstarsign($date){
         list($year,$month,$day)=explode("-",$date);
         if(($month==1 && $day>20)||($month==2 && $day<20)){
              return "Aquarius";
         }else if(($month==02 && $day>18 )||($month==03 && $day<21)){
              return "Pisces";
         }else if(($month==03 && $day>20)||($month==04 && $day<21)){
              return "Aries";
         }else if(($month==04 && $day>20)||($month==05 && $day<22)){
              return "Taurus";
         }else if(($month==05 && $day>21)||($month==06 && $day<22)){
              return "Gemini";
         }else if(($month==6 && $day>21)||($month==07 && $day<24)){
              return "Cancer";
         }else if(($month==07 && $day>23)||($month==08 && $day<24)){
              return "Leo";
         }else if(($month==08 && $day>23)||($month==09 && $day<24)){
              return "Virgo";
         }else if(($month==09 && $day>23)||($month==10 && $day<24)){
              return "Libra";
         }else if(($month==10 && $day>23)||($month==11 && $day<23)){
              return "Scorpio";
         }else if(($month==11 && $day>22)||($month==12 && $day<23)){
              return "Sagittarius";
         }else if(($month==12 && $day>22)||($month==01 && $day<21)){
              return "Capricorn";
         }
    }

    #2
    Thts cool... I never thought of tht....lol
    sigpiceeeeerrr....

    Comment


      #3
      very nice!
      tnx
      It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
      ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
      ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
      キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

      Comment


        #4
        any1 say how add this function to wapdesire script???
        if like my post click:

        http://coding-talk.com/images/totall...ost_thanks.gif

        Comment


          #5
          Learn here how to use function http://php.net or leave this function. You came here on 24 dec 2006 but you still moan here to get help.shame on you because people here want you to stop your moaning but you dont@sweetangel

          Comment


            #6
            Or you can use my wapside getsign function just needs the day and month

            Code:
            function ws_getsign($day,$month){
            if(($month==1 && $day>20)||($month==2 && $day<20)){
            $mysign = "Aquarius";
            }
            if(($month==2 && $day>18 )||($month==3 && $day<21)){
            $mysign = "Pisces";
            }
            if(($month==3 && $day>20)||($month==4 && $day<21)){
            $mysign = "Aries";
            }
            if(($month==4 && $day>20)||($month==5 && $day<22)){
            $mysign = "Taurus";
            }
            if(($month==5 && $day>21)||($month==6 && $day<22)){
            $mysign = "Gemini";
            }
            if(($month==6 && $day>21)||($month==7 && $day<24)){
            $mysign = "Cancer";
            }
            if(($month==7 && $day>23)||($month==8 && $day<24)){
            $mysign = "Leo";
            }
            if(($month==8 && $day>23)||($month==9 && $day<24)){
            $mysign = "Virgo";
            }
            if(($month==9 && $day>23)||($month==10 && $day<24)){
            $mysign = "Libra";
            }
            if(($month==10 && $day>23)||($month==11 && $day<23)){
            $mysign = "Scorpio";
            }
            if(($month==11 && $day>22)||($month==12 && $day<23)){
            $mysign = "Sagittarius";
            }
            if(($month==12 && $day>22)||($month==1 && $day<21)){
            $mysign = "Capricorn";
            }
            return $mysign;
            }

            Comment


              #7
              Here is a function to get zodiac sign
              Code:
              function getstarsign($date){
                   list($year,$month,$day)=explode("-",$date);
                   if(($month==1 && $day>20)||($month==2 && $day<20)){
                        return "Aquarius";
                   }else if(($month==02 && $day>18 )||($month==03 && $day<21)){
                        return "Pisces";
                   }else if(($month==03 && $day>20)||($month==04 && $day<21)){
                        return "Aries";
                   }else if(($month==04 && $day>20)||($month==05 && $day<22)){
                        return "Taurus";
                   }else if(($month==05 && $day>21)||($month==06 && $day<22)){
                        return "Gemini";
                   }else if(($month==6 && $day>21)||($month==07 && $day<24)){
                        return "Cancer";
                   }else if(($month==07 && $day>23)||($month==08 && $day<24)){
                        return "Leo";
                   }else if(($month==08 && $day>23)||($month==09 && $day<24)){
                        return "Virgo";
                   }else if(($month==09 && $day>23)||($month==10 && $day<24)){
                        return "Libra";
                   }else if(($month==10 && $day>23)||($month==11 && $day<23)){
                        return "Scorpio";
                   }else if(($month==11 && $day>22)||($month==12 && $day<23)){
                        return "Sagittarius";
                   }else if(($month==12 && $day>22)||($month==01 && $day<21)){
                        return "Capricorn";
                   }
              }
              [/b]
              nice code rukia!

              Comment


                #8
                Yup nice code nd new thinking ....gOod...
                <span style="font-size:12pt;line-height:100%"><span style="color:#FF0000">ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt</span></span>

                Comment


                  #9
                  just add this in ur core.php lol and use it for lavaliar any mod
                  get cheap web hosting ever AdzeHost
                  ===================
                  get free hosting for life time hostwebswap not allowed
                  ===================
                  get free cpanel web hosting free cpanel hostingwap are allowed
                  ===================

                  ===================

                  Comment


                    #10
                    HMMMMMMMMM I HV DIFFF 1

                    Comment

                    Working...
                    X