Here is my code
mysql_connect('localhost', 'root', 'password');
mysql_select_db('db');
mysql_query("INSERT INTO metabase(url, title, image, description) VALUES('http://www.imgur.com/', '$title', '$image', '$descr')") or die();
It does not show any error but the values are not inserted in database. My table name is metabase. url, title, images are varchar(255) and description text. This is the error
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 's visual storytelling community. Explore, share, and discuss the best visual sto' at line 1
This is the description
The Internet's visual storytelling community. Explore, share, and discuss the best visual stories the Internet has to offer.
So it is because of '
how do i correct it?