not sending request (chapel)

Started on the old forum in October 2009 · view the original in the archive · old links redirect here

6 replies · 482 views · started 17 years ago · 2 min read

4 participants
brand Senior · 391 posts #1

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

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 & 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

-- 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

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

Mysterio Lead · 630 posts #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

brand Senior · 391 posts #3

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

$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

External image (may be gone)

i only work on wapdesire v_2 coding only

Mysterio Lead · 630 posts #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

jefweewap Junior · 31 posts #6

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

brand Senior · 391 posts #7

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

External image (may be gone)

i only work on wapdesire v_2 coding only

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