Jump to content

[SOLVED] I can't determine what the syntax error is


yuckysocks

Recommended Posts

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...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.