birthday wapdesire v_2

Started on the old forum in June 2010 · view the original in the archive · old links redirect here

12 replies · 1,147 views · started 16 years ago · 1 min read

9 participants
brand Senior · 391 posts #1

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

$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&who=$sql[0]&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

External image (may be gone)

i only work on wapdesire v_2 coding only

Sora101 Newbie · 5 posts #3

this should work 😉

$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&who=$sql[0]&sid=$sid\">$sql[1]</a>";
		echo "$lnk<br/>Hope U have A Wonderful Day<br/><br/>";
	}
 }
brand Senior · 391 posts #4

Sora101 wrote: this should work 😉

$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&who=$sql[0]&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

External image (may be gone)

i only work on wapdesire v_2 coding only

subzero Super moderator Fellow · 3,954 posts #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... _______…

brand Senior · 391 posts #6

subzero wrote: 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

External image (may be gone)

i only work on wapdesire v_2 coding only

animal1982 Junior · 24 posts #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

jsyguy23 Developer · 134 posts #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 <a href="profile.php?who=$sql[0]&sid=$sid">$sql[1]</a>"; $main.="$lnk Hope U have A Wonderful Day

"; } }

summerskye Newbie · 5 posts #10

where do u add this?

where do u add this please

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close