Help Please

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

    Help Please

    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>function getstarsign ($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";
    }
    }

    $star = mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
    echo "Star Sign: ".getstarsign($star);
    echo "
    ";
    </div>
    please help ive tryed all sorts but no luck

    #2
    use
    Code:
    echo "[b]Star Sign: [/b]".getstarsign($star[0]);
    for further addition of this mod,you should check my forum

    Comment


      #3
      lol npo that not worked m8 whats addy to ya forum

      Comment


        #4
        the function was
        function getstarsign($date){
        list($year,$month,$day)=explode("-",$date);

        Comment


          #5
          the function was
          function getstarsign($date){
          list($year,$month,$day)=explode("-",$date);[/b]
          nop still not worked just blank in the profiles now pmsl

          Comment


            #6
            nop still not worked just blank in the profiles now pmsl[/b]
            I wont work until you dont fix your own made bugs,I posted this in several places and works for me and some other ppl

            Comment


              #7
              function getstarsign($date){
              list($year,$month,$day)=explode("-",$date);

              i put that in core and
              this in the profiles it shows the wrong sign for the user
              $star = mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
              echo "Star Sign: ".getstarsign($star[0]);

              Comment


                #8
                function getstarsign($date){
                list($year,$month,$day)=explode("-",$date);

                i put that in core and
                this in the profiles it shows the wrong sign for the user
                $star = mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
                echo "Star Sign: ".getstarsign($star[0]);[/b]
                this works 100%
                Code:
                function getstarsign($date){
                     list($year,$month,$day)=explode("-",$date);
                           if(($month=="01" && $day>20)||($month=="02" && $day<19)){
                          return "<img src=\"images/Aquarius.gif\" alt=\"Aquarius\"/>";
                     }else if(($month=="02" && $day>18)||($month=="03" && $day<21)){
                          return "<img src=\"images/Pisces.gif\" alt=\"Pisces\"/>";
                     }else if(($month=="03" && $day>20)||($month=="04" && $day<20)){
                          return "<img src=\"images/Aries.gif\" alt=\"Aries\"/>";
                     }else if(($month=="04" && $day>19)||($month=="05" && $day<21)){
                          return "<img src=\"images/Taurus.gif\" alt=\"Taurus\"/>";
                     }else if(($month=="05" && $day>20)||($month=="06" && $day<22)){
                          return "<img src=\"images/Gemini.gif\" alt=\"Gemini\"/>";
                     }else if(($month=="06" && $day>21)||($month=="07" && $day<23)){
                          return "<img src=\"images/Cancer.gif\" alt=\"Cancer\"/>";
                     }else if(($month=="07" && $day>22)||($month=="08" && $day<23)){
                          return "<img src=\"images/Leo.gif\" alt=\"Leo\"/>";
                     }else if(($month=="08" && $day>22)||($month=="09" && $day<23)){
                          return "<img src=\"images/Virgo.gif\" alt=\"Virgo\"/>";
                     }else if(($month=="09" && $day>22)||($month=="10" && $day<24)){
                          return "<img src=\"images/Libra.gif\" alt=\"Libra\"/>";
                     }else if(($month=="10" && $day>23)||($month=="11" && $day<23)){
                          return "<img src=\"images/Scorpio.gif\" alt=\"Scorpio\"/>";
                     }else if(($month=="11" && $day>22)||($month=="12" && $day<22)){
                          return "<img src=\"images/Sagittarius.gif\" alt=\"Sagittarius\"/>";
                     }else if(($month=="12" && $day>21)||($month=="01" && $day<21)){
                          return "<img src=\"images/Capricorn.gif\" alt=\"Capricorn\"/>";
                     }else {
                          return "<img src=\"images/nodate.gif\" alt=\"?\"/>";
                }
                }
                usage
                Code:
                $brt = mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
                  echo "<img src=\"images/right.gif\" alt=\"*\"/>Zodiac: ".getstarsign($brt[0]);
                  echo "
                ";
                p.s. find your own images...
                else just replace
                Code:
                <img src=\"images/Capricorn.gif\" alt=\"Capricorn\"/>
                to Capricorn... etc
                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


                  #9
                  its ok i got my ones working now lol

                  Comment

                  Working...
                  X