MySQLPHP halp!

I’m trying to learn me some mysqlphp but this just has me stumped.

Im following the tizag.com tutorial and so everything was ok but when we got to the the INSERT INTO tut and the code keeps throwing this error:

Parse error: parse error, expecting `’,” or `’;” in C:wampwwwsqltutsday2.php on line 8

The code is
mysql_query("INSERT INTO example (firstname, lastname, name) VALUES (‘Timmy’, ‘Mellowman’, ‘tmellowman@farce.com’ ) ");

All I did was change the column names and tried adding the , and ; where I thought logical. Its running on WAMP (mysql 5.1.36 and PHP 5.2.9-2).

Any help is appreciated.

I’m trying to learn me some mysqlphp but this just has me stumped.

Im following the tizag.com tutorial and so everything was ok but when we got to the the INSERT INTO tut and the code keeps throwing this error:

Parse error: parse error, expecting `’,” or `’;” in C:wampwwwsqltutsday2.php on line 8

The code is
mysql_query("INSERT INTO example (firstname, lastname, name) VALUES (‘Timmy’, ‘Mellowman’, ‘tmellowman@farce.com’ ) ");

All I did was change the column names and tried adding the , and ; where I thought logical. Its running on WAMP (mysql 5.1.36 and PHP 5.2.9-2).

Any help is appreciated.

mysql_query ("INSERT INTO example (firstname, lastname, name) VALUES (‘Timmy’, ‘Mellowman’, ‘tmellowman@face.com’)");

i just retyped it and it looks exactly like yours.
hmm that doesnt work? hmmm

are you sure its line 8?

Yeah, I don’t think that line is a problem.

Post the code around the insert?

Is there an line break instead of line wrap in there?? I’ve had that happen dozens of times.

DOH! I left out a ; on the previous line. Thanks guys!

Damnit, i was going to say that if you forget the semicolon on the line before, it’ll throw an error.