Jump to content

Marriage Sysetm

The Phantom

Recommended Posts

Could do something like.....

Add this into phpmyadmin:

ALTER TABLE `users` ADD `married` tinyint(11) default '0';


Then add something into the code for when they get married:

$db->query("UPDATE users SET married=married+1 WHERE userid=$userid");


Then add something into the code for when they get divorced:

$db->query("UPDATE users SET married=married-1 WHERE userid=$userid");


Now add something into for when trying to send requests to someone if they are already married:

if($ir['married'] == 1)
echo "This person is already married";


And also add same into section where they accept requests saying that you must be divorced before you can accept another marriage. There are probably some better ways of doing this but first way I could think of and should fix your problem of people being able to accept requests when already married, I think :P

Link to comment
Share on other sites

I had to do edits to the script... if it's the one I am thinking of, that has queries in the header part... those need to be removed and be put in the right page.. and under the correct function... As for this is why you are having this problem.

It should be done like Razor is stating!!

Edited by lucky3809
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...