Jump to content

Viewuser.php Edit


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);
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);
$marriagetxt=" ([url='marriageinfo.php?ID=$themid']Info[/url])";
} else {
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.

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