Jump to content
MakeWebGames

Viewuser.php Edit


Z?v??

Recommended Posts

Yes, this is a small edit in oxidati0ns marriage mod. He claims it works but it obviously doesnt for me. Its an edit in the viewuser.php that shows who the users are married to. It doesnt error or anything but it doesnt say who the users are married to.

 

if($r['married'] == 1)
{
$marryq=mysql_query("SELECT * FROM `marriages` WHERE (`marriage_from` = '$r[userid]') OR (`marriage_to` = '$r[userid]')",$c);
$mr=mysql_fetch_array($marryq);
if($mr['marriage_from'] == $userid) { $from=2; $themid=$mr['marriage_to']; } else { $from=1; $themid=$mr['marriage_from']; }
if($from == 1)
{
$uq=mysql_query("SELECT * FROM users WHERE userid='$mr[marriage_to]'",$c);
} else {
$uq=mysql_query("SELECT * FROM users WHERE userid='$mr[marriage_from]'",$c);
}
$marr=mysql_fetch_array($uq);
$married="[url='viewuser.php?u=$themid']".$marr['username']."[/url]";
$marriagetxt=" ([url='marriageinfo.php?ID=$themid']Info[/url])";
} else {
$married="N/A";
$marriagetxt="";
}
print "Married: $married$marriagetxt 

Married: ".number_format($r['married_times'])." times

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...