I know what a syntax error is but i cant find the problem in my syntax. I did the sql in phpmyadmin first and not ive just copied and put variables in.
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 new carving chisels. 1 x 13mm 4-point finishing claw Chisel. Southern St' at line 3
Code:
public function insert_row($vendor, $product_link, $product_title, $product_desc, $product_price){
mysql_query("INSERT INTO `crawl_products` ( `vendor` , `product_link` , `product_title` , `product_desc` , `product_price` )
VALUES (
'$vendor', '$product_link', '$product_title', '$product_desc', '$product_price'
)") or die(mysql_error());
}
Many Thanks.