prcollin Posted July 11, 2007 Share Posted July 11, 2007 Parse error: syntax error, unexpected T_VARIABLE no clue what is wrong this is what is written $servername = "localhost"; and I keep getting that error for that line i also tried $host = "localhost"; Link to comment https://forums.phpfreaks.com/topic/59434-parse-error-syntax-error-unexpected-t_variable/ Share on other sites More sharing options...
Yesideez Posted July 11, 2007 Share Posted July 11, 2007 Can you show the error message in full? Chances are the error could be caused by the previous line - it's always worth checking. Link to comment https://forums.phpfreaks.com/topic/59434-parse-error-syntax-error-unexpected-t_variable/#findComment-295314 Share on other sites More sharing options...
prcollin Posted July 11, 2007 Author Share Posted July 11, 2007 Can you show the error message in full? Chances are the error could be caused by the previous line - it's always worth checking. that is the error in whole except it says LINE 2 at the end Link to comment https://forums.phpfreaks.com/topic/59434-parse-error-syntax-error-unexpected-t_variable/#findComment-295350 Share on other sites More sharing options...
metrostars Posted July 11, 2007 Share Posted July 11, 2007 copy the line(s) above that into here. Link to comment https://forums.phpfreaks.com/topic/59434-parse-error-syntax-error-unexpected-t_variable/#findComment-295352 Share on other sites More sharing options...
per1os Posted July 11, 2007 Share Posted July 11, 2007 Can you show the error message in full? Chances are the error could be caused by the previous line - it's always worth checking. that is the error in whole except it says LINE 2 at the end Like that helps us. Parse errors usually come from the lines above. Post some code man. Link to comment https://forums.phpfreaks.com/topic/59434-parse-error-syntax-error-unexpected-t_variable/#findComment-295365 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.