scottsdalelady
Technical User
I'm helping someone import a rather large product data base into Mysql. (approx 4000 products). My problem is the product_description table. The descriptions are rather long and contain tons of quotes, commas, and parentheses and periods. I've exported that column into a php editor that I use, as it has a super search and replace functionality. Excell was impossible to use for this purpose. My problem is that reading documentation, I've become confused when to use \ and when to incase inside ' ' Is there someone that could advise me here with some basic rules? Each time I think I've solved the issue I get an error on running the INSERT to the db.
Here's an example that contains just about all of the charactors I'm dealing with outside of the parentheses which I have a ton of those. The way I've handled this is not working for me (or I guess I wouldn't be here - lol). I'm really burned out here and any help would be greatly appreciated. Please forgive my ignorance, but I'm just really stuck. I thought I would have this done in a snap... well best laid plans......
INSERT INTO `products_description`
VALUES ( 51, 1, 'AAFTL: Amulet: After Life Goddess - Protectress of the dead', 'After Life Goddess Protectress of the dead\; copper finish. Approx 1' "" ' long X5 '/'16wide '"' ', NULL , 11, NULL , NULL , NULL );
Here's an example that contains just about all of the charactors I'm dealing with outside of the parentheses which I have a ton of those. The way I've handled this is not working for me (or I guess I wouldn't be here - lol). I'm really burned out here and any help would be greatly appreciated. Please forgive my ignorance, but I'm just really stuck. I thought I would have this done in a snap... well best laid plans......
INSERT INTO `products_description`
VALUES ( 51, 1, 'AAFTL: Amulet: After Life Goddess - Protectress of the dead', 'After Life Goddess Protectress of the dead\; copper finish. Approx 1' "" ' long X5 '/'16wide '"' ', NULL , 11, NULL , NULL , NULL );