PDA

View Full Version : Parse Erroe(user.php)


0zone
10-20-2003, 05:08 AM
The error I am getting:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/aaron/public_html/forums/admin/user.php on line 1228

Parse error: parse error, expecting `','' or `';'' in /home/aaron/public_html/forums/admin/user.php on line 1228

My sniplet of user.php

Line 1226:
echo "<tr class='tblhead'><td><p><b><span class='tblhead'>Validate?</span></b></p></td><td><p><b><span class='tblhead'>Name</span></b></p></td><td><p><b><span class='tblhead'>Email</span></b></p></td><td><p><b><span class='tblhead'>Options</span></b></p></td></tr>\n";

Line 1227:
while ($user=$DB_site->fetch_array($users)) {

Line 1228:
echo "<tr class='".getrowbg()."'><td><p> Yes<input type=\"radio\" checked name="\validate[$user[userid]]\" value="1\"> No <input type=\"radio\" name=\"validate[$user[userid]]\" value=\


Any help in resolving this issue would be greatly appreciated.

Thanks,
0zone

Xenon
10-20-2003, 12:50 PM
checked name="validate[$user[userid]]"

should be checked name=\"validate[$user[userid]]\"

also are you sure you have not forgotten the end of the line?