not sending request (chapel)

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

    not sending request (chapel)

    hi all i am sorting out a chapel for one my sites and when i go to send a request it dont send it here is the request part

    Code:
    addonline(getuid_sid($sid),"The Chapel","");
    echo head_tag(getnick_sid($sid)."@The Chapel",1,getnick_sid($sid));
    $title="<b>Welcome To The Online Chapel!</b>";
    $main="<p align=".align().">";
    
    if($wid==0 OR $wid=="")
    {
    $main.="<img src=\"../images/error.gif\" alt=\"\"/><br/>";
    $main.="UserName Doesn't Exist!<br/>Please Check Spelling &amp; Try Again<br/>----<br/>\n";
    $main.="<a href=\"chapel.php?sid=$sid\">Chapel Menu</a><br/>\n";
    }else{
    $iswhom = mysql_fetch_array(mysql_query("SELECT ismd FROM ibwf_chapel WHERE mid='".$wid."'"));
    if (!$iswhom)
    {
    $iswhom = mysql_fetch_array(mysql_query("SELECT ismd FROM ibwf_chapel WHERE uid='".$wid."'"));
    }
    if($iswhom[0]=='1')
    {
    $main.="Shame On You! You Cant Get Married To 2 People At Any One Time<br/>\n";
    }else{
    $iswhor = mysql_fetch_array(mysql_query("SELECT rpen FROM ibwf_chapel WHERE mid='".$wid."'"));
    if (!$iswhor)
    {
    $iswhor = mysql_fetch_array(mysql_query("SELECT rpen FROM ibwf_chapel WHERE uid='".$wid."'"));
    }
    if($iswhor[0]=='1')
    {
    echo "$who Already Has A Request Pending!<br/>If This Seems To Be A Problem<br/>
    Then Kindly Ask $who To Reject The Other Offer<br/>";
    }else{
    echo "<img src=\"../phpThumb/phpThumb.php?src=../images/ok.gif\" alt=\"\"/>A Request Has Been Sent To $who";
    mysql_query("INSERT INTO ibwf_chapel SET rpen='1', mid='".$wid."', uid='".$uid."'");
    
    mysql_query("INSERT INTO inbox SET text='Hi Gorgeous I Love You $who Therefore I Ask If You Will Wappied Me. Please Visit The Chapel To Accept *Auto Message*', byuid='".$uid."', touid='".$wid."', timesent='".$tm."'");
    and this is the db i am trying to use with it

    Code:
    -- Table structure for table `ibwf_chapel`
    --
    
    CREATE TABLE IF NOT EXISTS `ibwf_chapel` (
      `id` int(100) NOT NULL auto_increment,
      `ismd` char(1) NOT NULL default '0',
      `uid` int(100) NOT NULL default '0',
      `mid` int(100) NOT NULL default '0',
      `rpen` char(1) NOT NULL default '0',
      `mdy` int(100) NOT NULL default '0',
      PRIMARY KEY  (`id`),
      KEY `uid` (`uid`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
    
    --
    -- Dumping data for table `ibwf_chapel`
    --
    i have got every thing else working its just the request will not send please help me with this i am 99% done with this its just this 1% that not done i will share it when i have finished with it i am using wapdesire v_2 script
    Last edited by brand; 16.10.09, 11:24.
    HELP THEM WHO HELPS YOU



    i only work on wapdesire v_2 coding only

    #2
    Ow, what error do you exactly get? I sugest you to download Chapel Deluxe (moded by Honkytonk Man). 2-3 small bugs, but see that code first, then work on yours.
    Maybe the table inbox do not exist. You have to change it to ibwf_private. Then, make it "INSERT INTO ibwf_private SET ...". But, what error are you getting?
    mysterio.al - programming is a functional art

    Comment


      #3
      Originally posted by Mysterio3 View Post
      Ow, what error do you exactly get? I sugest you to download Chapel Deluxe (moded by Honkytonk Man). 2-3 small bugs, but see that code first, then work on yours.
      Maybe the table inbox do not exist. You have to change it to ibwf_private. Then, make it "INSERT INTO ibwf_private SET ...". But, what error are you getting?


      the script that honkytonk man is using is diffrent than what i am using he is using the old wapdesire script i am using wapdesire v_2 script and it uses inbox not ibwf_private and in my first message says

      i am sorting out a chapel for one my sites and when i go to send a request it dont send it here is the request part
      that means the error is its not sending the request i think it is to do with

      Code:
      $iswhom = mysql_fetch_array(mysql_query("SELECT ismd FROM ibwf_chapel WHERE mid='".$wid."'"));
      if (!$iswhom)
      {
      $iswhom = mysql_fetch_array(mysql_query("SELECT ismd FROM ibwf_chapel WHERE uid='".$wid."'"));
      }
      if($iswhom[0]=='1')
      {
      $main.="Shame On You! You Cant Get Married To 2 People At Any One Time<br/>\n";
      }else{
      $iswhor = mysql_fetch_array(mysql_query("SELECT rpen FROM ibwf_chapel WHERE mid='".$wid."'"));
      if (!$iswhor)
      {
      $iswhor = mysql_fetch_array(mysql_query("SELECT rpen FROM ibwf_chapel WHERE uid='".$wid."'"));
      }
      if($iswhor[0]=='1')
      {
      as this is the request part of the script i am using i got the coding off brumi which was not finished and there was errors and it was giving me white page so i fixed it and i just got the request part to fix please can any good coder please help me with this please
      HELP THEM WHO HELPS YOU



      i only work on wapdesire v_2 coding only

      Comment


        #4
        Dude, but what do happens when you click to send the request? Or just a white page? I never used wapdesire, but if you want, pm me the chapel.php, and i promise to give it back in a day.
        mysterio.al - programming is a functional art

        Comment


          #5
          iv nw finished it il upload it in a bit later..
          Want something coded email me at sales@webnwaphost.com for a prices.




          Comment


            #6
            just see if user is male or female not shemale...

            Comment


              #7
              Originally posted by Mysterio3 View Post
              Dude, but what do happens when you click to send the request? Or just a white page? I never used wapdesire, but if you want, pm me the chapel.php, and i promise to give it back in a day.
              it just comes up with home on the page and thats it and its in a diffrent file not chapel


              crazybrumi iv nw finished it il upload it in a bit later..
              brumi its just the request.php part it need mate
              and will it work with the db i am using as well mate
              HELP THEM WHO HELPS YOU



              i only work on wapdesire v_2 coding only

              Comment

              Working...
              X