Jump to content

Parse error: syntax error, unexpected T_STRING in /home/monk3h/public_html/admin


Monk3h

Recommended Posts

Can anyone tell me whats wrong with this? It loosk fine too me.. but im a noob.

 

 

if ($view == view) {
print "<form method=post action=admin.php?view=view&step=view>View ID <input type=text name=vid>
   $vstat = mysql_fetch_array(mysql_query("select * from players where id = $vid"));
if ($step == view) {
Print "
<table border='0' bordercolor='' width='60%' bgcolor=''>
<tr>
<td>ID </td>
<td>$vstat[id]</td>

</tr>
<tr>
<td>User</td>
<td>$vstat[users]</td>
</tr>
<tr>
<td>Email</td>
<td>$vstat[email]</td>
</tr>
<tr>
<td>Password</td>
<td>$vstat[pass]</td>
</tr>
</table><br><br>";

	}
}

 

 

 

Parse error: syntax error, unexpected T_STRING in /home/monk3h/public_html/admin.php on line 285

 

 

 

Line 285:

 

   $vstat = mysql_fetch_array(mysql_query("select * from players where id = $vid"));

You are missing a quote and semi-colon on this line:

	print "<form method=post action=admin.php?view=view&step=view>View ID <input type=text name=vid>

it should be:

	print "<form method=post action=admin.php?view=view&step=view>View ID <input type=text name=vid>";

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.