crackerman4 Posted May 14, 2009 Share Posted May 14, 2009 I get this error on my forum site... I am very green when it comes to PHP... PLEASE help! Warning: Unexpected character in input: '' (ASCII=25) state=1 in /home/content/l/w/r/lwrifles/html/forum/viewtopic.php on line 999 Warning: Unexpected character in input: ' in /home/content/l/w/r/lwrifles/html/forum/viewtopic.php on line 999 Warning: Unexpected character in input: ' in /home/content/l/w/r/lwrifles/html/forum/viewtopic.php on line 999 Warning: Unexpected character in input: ' in /home/content/l/w/r/lwrifles/html/forum/viewtopic.php on line 999 Parse error: parse error, unexpected T_STRING in /home/content/l/w/r/lwrifles/html/forum/viewtopic.php on line 999 And here is the few lines of code before line 999 and a few after.... if ( ( $userdata['user_id'] == $poster_id && $is_auth['auth_edit'] ) || $is_auth['auth_mod'] ) { **LINE 999** $temp_url = append_sid("posting.$phpEx?mode=editpost&" . POST_POST_URL . "=" . $postrow[$i]['post_id']); $edit_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_edit'] . '" alt="' . $lang['Edit_delete_post'] . '" title="' . $lang['Edit_delete_post'] . '" border="0" /></a>'; $edit = '<a href="' . $temp_url . '">' . $lang['Edit_delete_post'] . '</a>'; Link to comment https://forums.phpfreaks.com/topic/158173-parse-error-parse-error-unexpected-t_string/ Share on other sites More sharing options...
papaface Posted May 14, 2009 Share Posted May 14, 2009 Your if statement is wrong if ( ( $userdata['user_id'] == $poster_id && $is_auth['auth_edit'] ) || $is_auth['auth_mod'] ) What are you trying to achieve here. Tell us in words not code. Link to comment https://forums.phpfreaks.com/topic/158173-parse-error-parse-error-unexpected-t_string/#findComment-834320 Share on other sites More sharing options...
crackerman4 Posted May 14, 2009 Author Share Posted May 14, 2009 ??? When at the forum all is well until you try drilling down to an actual topic posting. Link to comment https://forums.phpfreaks.com/topic/158173-parse-error-parse-error-unexpected-t_string/#findComment-834329 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.