Jump to content
MakeWebGames

Recommended Posts

Posted

I am trying to install 'Marriage Pro', though I keep getting this error after I insert the code into index.php

Parse error: syntax error, unexpected $end in /home/marfur93/public_html/index3.php on line 74

Does anyone know why this is? On line 74 in index.php it just says ?>

Posted

Re: Help with Syntax Error

P.S. I get the error message when I add the following sode to my index.php

 

$mq=mysql_query("SELECT * FROM `marriages` WHERE (`marriage_to` = '{$userid}') OR (`marriage_from` = '{$userid}')",$c);
if(mysql_num_rows($mq))
{
$mr=mysql_fetch_array($mq);
if($mr['marriage_from'] == $userid) { $user=$mr['marriage_to']; } else { $user=$mr['marriage_from']; }
$get_U=mysql_query("SELECT * FROM users WHERE userid=$user",$c);
$gr=mysql_fetch_array($get_U);
Posted

Re: Help with Syntax Error

 

I am trying to install 'Marriage Pro', though I keep getting this error after I insert the code into index.php

Parse error: syntax error, unexpected $end in /home/marfur93/public_html/index3.php on line 74

Does anyone know why this is? On line 74 in index.php it just says ?>

Try putting a

}

bwfore you

?>

Posted

Re: Help with Syntax Error

Thanks for your help, though it now says the following:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/marfur93/public_html/index3.php on line 10

Here is the code with line numbers:

 

09 $mq=mysql_query("SELECT * FROM `marriages` WHERE (`marriage_to` = '{$userid}') OR (`marriage_from` = '{$userid}')",$c);
10 if(mysql_num_rows($mq))
11 {
12 $mr=mysql_fetch_array($mq);
13 if($mr['marriage_from'] == $userid) { $user=$mr['marriage_to']; } else { $user=$mr['marriage_from']; }
14 $get_U=mysql_query("SELECT * FROM users WHERE userid=$user",$c);
15 $gr=mysql_fetch_array($get_U);

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