Jump to content

Archived

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

greggustin

cannot insert into 2nd table in data base

Recommended Posts

made a very simple DB
1st table = no problem posing with html form => php => musql table
made 2nd table = cannot insert data
get his error message:
[color=red]posting of display test data I cannot connect to the database because: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''test1.test1table2' (first,last,age)VALUES ('greg', 'gustin', '99')' at line 1[/color]

Share this post


Link to post
Share on other sites
looks to me like you're using single quotes around the table name when you shouldn't be.  either use no quotes at all or use backticks (`).

Share this post


Link to post
Share on other sites
Please post your code surrounded by [nobbc][code][/code][/nobbc] tags.

Ken

Share this post


Link to post
Share on other sites

×

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.