birthday wapdesire v_2

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

    birthday wapdesire v_2

    hi there i have seen this on lava script and tryed playing around with it for wapdesire v_2 script can any one please help change this for it to work please

    Code:
    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users where month(`birthday`) = month(curdate()) and dayofmonth(`birthday`) = dayofmonth(curdate());"));
      if($noi[0]!=0){
      $sql = mysql_fetch_array(mysql_query("SELECT id, name, birthday  FROM ibwf_users where month(`birthday`) = month(curdate()) and dayofmonth(`birthday`) = dayofmonth(curdate()) ORDER BY RAND() LIMIT 1"));
      $uage = getage($sql[2]);
      $lnk = "Happy Birthday<br/><a href=\"index.php?action=viewuser&amp;who=$sql[0]&amp;sid=$sid\">$sql[1]</a>";
      echo "$lnk<br/>Hope U have A Wonderful Day<br/><br/>";
      }
    thanks to any one that can help me with it pelase
    HELP THEM WHO HELPS YOU



    i only work on wapdesire v_2 coding only

    #2
    can any one help with this please
    HELP THEM WHO HELPS YOU



    i only work on wapdesire v_2 coding only

    Comment


      #3
      this should work ;)

      Code:
      $noi = mysql_num_rows(mysql_query("SELECT COUNT(*) FROM ibwf_users where month(`birthday`) = month(curdate()) and dayofmonth(`birthday`) = dayofmonth(curdate());"));
      if($noi > 0){
      	$sql = mysql_query("SELECT id, name, birthday  FROM ibwf_users where month(`birthday`) = month(curdate()) and dayofmonth(`birthday`) = dayofmonth(curdate()) ORDER BY RAND() LIMIT 1");
      	while ($row = mysql_fetch_array($sql,MYSQL_BOTH)) {
      		$uage = getage($row[2]);
      		$lnk = "Happy Birthday<br/><a href=\"index.php?action=viewuser&amp;who=$sql[0]&amp;sid=$sid\">$sql[1]</a>";
      		echo "$lnk<br/>Hope U have A Wonderful Day<br/><br/>";
      	}
       }

      Comment


        #4
        Originally posted by Sora101 View Post
        this should work ;)

        Code:
        $noi = mysql_num_rows(mysql_query("SELECT COUNT(*) FROM ibwf_users where month(`birthday`) = month(curdate()) and dayofmonth(`birthday`) = dayofmonth(curdate());"));
        if($noi > 0){
        	$sql = mysql_query("SELECT id, name, birthday  FROM ibwf_users where month(`birthday`) = month(curdate()) and dayofmonth(`birthday`) = dayofmonth(curdate()) ORDER BY RAND() LIMIT 1");
        	while ($row = mysql_fetch_array($sql,MYSQL_BOTH)) {
        		$uage = getage($row[2]);
        		$lnk = "Happy Birthday<br/><a href=\"index.php?action=viewuser&amp;who=$sql[0]&amp;sid=$sid\">$sql[1]</a>";
        		echo "$lnk<br/>Hope U have A Wonderful Day<br/><br/>";
        	}
         }
        thanks but that is the same as what i put up and is off a lava script i am using wapdesire v_2 script
        HELP THEM WHO HELPS YOU



        i only work on wapdesire v_2 coding only

        Comment


          #5
          it is lavalair DUH lol
          Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
          Visit: WapMasterz Coming Back Soon!
          _______
          SCRIPTS FOR SALE BY SUBZERO
          Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
          FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
          _______
          Info & Tips
          php.net
          w3schools.com

          Comment


            #6
            Originally posted by subzero View Post
            it is lavalair DUH lol

            lava uses echo for the coding and ibwf_ for database and wapdesire v_2 dont use none of them it uses $main.=" and also has the name of the part eg users, profiles, themes
            HELP THEM WHO HELPS YOU



            i only work on wapdesire v_2 coding only

            Comment


              #7
              add a new row birthday` varchar(10) NOT NULL default in table users, then insert it in when user signs up then u can call it m8 thats what i would do lol

              Comment


                #8
                $noi=mysql_num_rows(mysql_query("SELECT COUNT(*) FROM users where month(`birthday`) = month(curdate()) and dayofmonth(`birthday`) = dayofmonth(curdate());"));
                if($noi>0){
                $sql=mysql_query("SELECT id, name, birthday FROM users where month(`birthday`) = month(curdate()) and dayofmonth(`birthday`) = dayofmonth(curdate()) ORDER BY RAND() LIMIT 1");
                while($row=mysql_fetch_array($sql,MYSQL_BOTH)){
                $uage=getage($row[2]);
                $lnk="Happy Birthday<br/><a href=\"profile.php?who=$sql[0]&amp;sid=$sid\">$sql[1]</a>";
                $main.="$lnk<br/>Hope U have A Wonderful Day<br/><br/>";
                }
                }

                Comment


                  #9
                  clear code answer ?

                  Comment


                    #10
                    where do u add this?

                    where do u add this please

                    Comment


                      #11
                      Originally posted by summerskye View Post
                      where do u add this please
                      top of the index page i presume

                      Comment


                        #12
                        ty

                        thank u amylee

                        Comment


                          #13
                          Originally posted by summerskye View Post
                          where do u add this please
                          it's main.php on v2

                          Comment

                          Working...
                          X