The following query runs fine on my test server at home, running MySQL 5.0.15, but on my hosting provider's server, running MySQL 4.0.24, it gets a syntax error. Can anyone help me figure out why?
Here's the error message :
Thank you
--
-- Ghodmode
Give a man a fish and he'll come back to buy more... Teach a man to fish and you're out of business.
Code:
insert into product (name, url, cost, purchase_dt)
values('Whatchamacallit', '[URL unfurl="true"]http://www.whatchamacallit.com',[/URL] 50000, str_to_date('2006-04-20', '%Y-%m-%d'))
Here's the error message :
#1064 - 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 '('2006-04-20', '%Y-%m-%d'))' at line 2
Thank you
--
-- Ghodmode
Give a man a fish and he'll come back to buy more... Teach a man to fish and you're out of business.