Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: birthday wapdesire v_2

  1. #1
    Senior Member
    Join Date
    May 2009
    Posts
    395
    Thanks
    45
    Thanked 18 Times in 11 Posts
    Rep Power
    5

    Default 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

    [Only registered and activated users can see links. Click Here To Register...]

    i only work on wapdesire v_2 coding only

  2. #2
    Senior Member
    Join Date
    May 2009
    Posts
    395
    Thanks
    45
    Thanked 18 Times in 11 Posts
    Rep Power
    5

    Default

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

    [Only registered and activated users can see links. Click Here To Register...]

    i only work on wapdesire v_2 coding only

  3. #3
    Junior Member
    Join Date
    Jun 2010
    Posts
    5
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    0

    Default

    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/>";
    	}
     }

  4. #4
    Senior Member
    Join Date
    May 2009
    Posts
    395
    Thanks
    45
    Thanked 18 Times in 11 Posts
    Rep Power
    5

    Default

    Quote Originally Posted by Sora101 [Only registered and activated users can see links. Click Here To Register...]
    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

    [Only registered and activated users can see links. Click Here To Register...]

    i only work on wapdesire v_2 coding only

  5. #5
    Super Moderator subzero's Avatar
    Join Date
    Mar 2006
    Location
    Your Screen.
    Posts
    3,971
    Thanks
    442
    Thanked 379 Times in 180 Posts
    Blog Entries
    7
    Rep Power
    0

    Default

    it is lavalair DUH lol
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    _______
    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

  6. #6
    Senior Member
    Join Date
    May 2009
    Posts
    395
    Thanks
    45
    Thanked 18 Times in 11 Posts
    Rep Power
    5

    Default

    Quote Originally Posted by subzero [Only registered and activated users can see links. Click Here To Register...]
    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

    [Only registered and activated users can see links. Click Here To Register...]

    i only work on wapdesire v_2 coding only

  7. #7
    Junior Member
    Join Date
    Oct 2008
    Posts
    24
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    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

  8. #8
    Senior Member
    Join Date
    Oct 2007
    Location
    jersey
    Posts
    133
    Thanks
    7
    Thanked 23 Times in 4 Posts
    Rep Power
    0

    Default

    $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/>";
    }
    }

  9. The Following User Says Thank You to jsyguy23 For This Useful Post:

    carebear (25-07-11)

  10. #9
    Junior Member
    Join Date
    Oct 2010
    Posts
    18
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    clear code answer ?

  11. #10
    Junior Member
    Join Date
    Mar 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default where do u add this?

    where do u add this please

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Birthday Reminder
    By riderz in forum Site / Script testing and error fixing
    Replies: 3
    Last Post: 14-02-10, 11:05
  2. Happy Birthday metulj!
    By GumSlone in forum Trash forum
    Replies: 6
    Last Post: 24-01-10, 11:49
  3. birthday
    By dominik92r in forum Coding Forum
    Replies: 3
    Last Post: 01-09-09, 16:41
  4. Zodiac From Data Birthday On Wapdesire
    By sweetangel in forum Coding Forum
    Replies: 2
    Last Post: 02-06-08, 07:26
  5. Show Birthday Day And Month In Words
    By ori in forum Coding Forum
    Replies: 6
    Last Post: 06-02-08, 12:09

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19