viewuser married info

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

1 reply · 370 views · started 17 years ago · 1 min read

honkytonkman Senior · 252 posts #1

i put with some problems the chapel function in my italian wapdesire xhtml version, i think it's workin'right now.. but i would need a code to put on index.php ,on viewuser action, saying, for exemple,: questo utente fa COPPIA PEOPLEIANA con: (this user is married with)

i tried to do by myself this but not works right..😳

//////////couple adv.

$we = mysql_fetch_array(mysql_query("SELECT who, partner, accept, req FROM couple WHERE who='".$uid."'"));
if($we[2]=='1')
{
$wer = getnick_uid($we[1]);

      echo "<br/><img src=\"../images/Heart.gif\" alt=\"\"/><br/>";

echo "questo utente fa COPPIA PEOPLEIANA con: $wer!<br/>";
}

//////end

i do a disaster code ehm..😊

the italian/international COMMUNITY of friendship http://people2000.netne.net WAP/WEB peoplemailbox@katamail.com

honkytonkman Senior · 252 posts #2

i found this on lava ,but it's a buggy code for a fool grammatical wrong.. couples instead couple

$couple = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE who='".$who."'")); if($couple[0]=='1') { echo "RELATIONSHIP "; $unick = getnick_uid($couple[2]); echo "$whonick is partnered by $unick "; } $couples = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE partner='".$who."'")); if($couples[0]=='1') { echo "RELATIONSHIP "; $nick = getnick_uid($couples[1]); echo "$whonick is partnered by $nick "; } this is the right code..

$couple = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE who='".$who."'")); if($couple[0]=='1') { echo "RELATIONSHIP "; $unick = getnick_uid($couple[2]); echo "$whonick is partnered by $unick "; } $couple = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE partner='".$who."'")); if($couple[0]=='1') { echo "RELATIONSHIP "; $nick = getnick_uid($couple[1]); echo "$whonick is partnered by $nick "; }

the italian/international COMMUNITY of friendship http://people2000.netne.net WAP/WEB peoplemailbox@katamail.com

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