yuckysocks Posted March 13, 2009 Share Posted March 13, 2009 Easy fix, no doubt: $db = mysql_connect('xxxxx.xxxxxx.net','xxxxxx','xxxxxxxxxxx') or die(mysql_error()); mysql_select_db('xxxxxxxxxxxxx') or die(mysql_error()); mysql_query("INSERT INTO weatherdata (date, weatherstr, temp, wind) VALUES ('$date', '$weather', '$temp', '$wind')"); mysql_close($db); Unexpected T String Error. Gah! I don't THINK I have a syntax error, but of course, no one ever does... Quote Link to comment https://forums.phpfreaks.com/topic/149324-solved-i-cant-determine-what-the-syntax-error-is/ Share on other sites More sharing options...
PFMaBiSmAd Posted March 13, 2009 Share Posted March 13, 2009 The posted code does not produce that error. Either something before the posted code or in the part you xxxxx'ed out is causing the error. Identifying which line number the error is referring to would help. Quote Link to comment https://forums.phpfreaks.com/topic/149324-solved-i-cant-determine-what-the-syntax-error-is/#findComment-784184 Share on other sites More sharing options...
sKunKbad Posted March 13, 2009 Share Posted March 13, 2009 I can't see anything wrong with it. What line number is the error on? Quote Link to comment https://forums.phpfreaks.com/topic/149324-solved-i-cant-determine-what-the-syntax-error-is/#findComment-784187 Share on other sites More sharing options...
yuckysocks Posted March 13, 2009 Author Share Posted March 13, 2009 it was on 27, and with a different editor, I found some weird errors. I copied/pasted from a website, but something that showed up as a space in the browser was actually encoded as a weird E`. Hard to find! Quote Link to comment https://forums.phpfreaks.com/topic/149324-solved-i-cant-determine-what-the-syntax-error-is/#findComment-784189 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.