Monk3h Posted April 9, 2008 Share Posted April 9, 2008 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")); Quote Link to comment https://forums.phpfreaks.com/topic/100376-parse-error-syntax-error-unexpected-t_string-in-homemonk3hpublic_htmladmin/ Share on other sites More sharing options...
rhodesa Posted April 9, 2008 Share Posted April 9, 2008 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>"; Quote Link to comment https://forums.phpfreaks.com/topic/100376-parse-error-syntax-error-unexpected-t_string-in-homemonk3hpublic_htmladmin/#findComment-513291 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.