help me

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

    help me

    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
    PHP Code:
    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&amp;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";
          } 

    #2
    The sms.php file please?
    http://myfacepals.com
    MYFACEPALS SOCIAL NETWORKsigpic

    Comment


      #3
      Originally posted by revenge View Post
      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
      PHP Code:
      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&amp;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-fo...r-your-wapsite

      Comment

      Working...
      X