help me

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

2 replies · 310 views · started 16 years ago · 1 min read

3 participants
revenge Junior · 12 posts #1

i want to ad limit in sms i mean user can send 5sms per day next day they can able to send 5sms so plz help me to code. i code this still m nt sucess plz fix

echo "<i>No need to add country code 91</i><br/>";
$sent = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$uid."'"));
      if($sent[0]<5)
      {
echo "Phone no: <input name=\"phone\" maxlength=\"10\"/><br/>";
echo "Message: <input name=\"message\" maxlength=\"140\"/><br/>";
echo "<anchor>Send";
    echo "<go href=\"sms.php?action=sendsms&sid=$sid\" method=\"post\">
         <postfield name=\"phone\" value=\"$(phone)\"/>
         <postfield name=\"message\" value=\"$(message)\"/>
</go></anchor><br/>";
}else{
        echo "You already sent 5 sms try next day";
      }

Erro occured when error file create

Loony Senior · 258 posts #3

revenge wrote: i want to ad limit in sms i mean user can send 5sms per day next day they can able to send 5sms so plz help me to code. i code this still m nt sucess plz fix

echo "<i>No need to add country code 91</i><br/>";
$sent = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$uid."'"));
      if($sent[0]<5)
      {
echo "Phone no: <input name=\"phone\" maxlength=\"10\"/><br/>";
echo "Message: <input name=\"message\" maxlength=\"140\"/><br/>";
echo "<anchor>Send";
    echo "<go href=\"sms.php?action=sendsms&sid=$sid\" method=\"post\">
         <postfield name=\"phone\" value=\"$(phone)\"/>
         <postfield name=\"message\" value=\"$(message)\"/>
</go></anchor><br/>";
}else{
        echo "You already sent 5 sms try next day";
      }

i never work on lavalai but should the query be $sent = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE uid='".$uid."'")); if($sent[0]<5)

uid instead of name

Creator of Epix.Mobi

Keep an Eye on us Big things coming soon!!!! Need something for your site hit me up here http://coding-talk.com/forum/main-forums/marketplace/153110-free-features-for-your-wapsite

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