2012-09-22 64 views
0
INSERT INTO Products (Backorderable , CategoryID , Cost , CostExTax , DetPage , Enabled , FreightMode , ImageFile , Inventory , LongDescription , LongDescriptionMode , PerUnitShippingCharge1 , PerUnitShippingCharge2 , PerUnitShippingCharge3 , PerUnitWeight , ProductCode , ProductColor , ProductName , ProductSize , QBModified , Service , ShortCode , ShortDescription , ShortDescriptionMode , UseColor , UseSize , PageTitle , MetaDescription , MetaKeywordList , UseDefaultPageTitle , UseGlobalMetaDesc , UseGlobalMetaKeywords , SortOrder , PlainTextDescription , IncludeInFeeds , Available , HidePrice , HideBuyButton , UnavailableMessage , dtModified , ProductID , RRP) VALUES (0, NULL, 199, 0, -1, -1, NULL, N'images/stories/virtuemart/product/slice.jpg', 0, N'<P class=MsoNormal><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">The SLICE™ Fabrique is a revolutionary fabric-cutting tool that makes quilting easier. </SPAN></P> 
<P class=MsoNormal><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">Don't spend hours cutting intricate designs with scissors when you can save time by allowing the </SPAN><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">SLICE™</SPAN><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"> Fabrique to do all the work for you. The </SPAN><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">SLICE™</SPAN><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"> Fabrique works with design cards specifically customized for fabric so you can cut alphabets, numbers, flowers, icons, basic shapes, and more.</SPAN></P> 
<P class=MsoNormal><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">Apply a fusible web to your cotton fabric, felt or flannel and you are ready to start Slicing. If you can imagine it, you can </SPAN><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">SLICE™</SPAN><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"> it.<SPAN>&nbsp; </SPAN></SPAN></P> 
<P class=MsoNormal><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">The </SPAN><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">SLICE™</SPAN><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"> Fabrique is unlike anything you have ever seen. It's a one-of-a-kind tool that fits within everybody's budget. Save time and money while creating projects that will last a lifetime. </SPAN></P><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"> 
<DIV><FONT size=2 face=Arial>The Machine comes with 3 replacement blades, blade adjustment wrench, 6x6" glass cutting mat, repostitionable adhesive, foam brush, 3- 6x6" fusable web sheets, quick start guide, apllique basics SD design card, design card book.</FONT></DIV></SPAN> 
<P class=MsoNormal><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"></SPAN>&nbsp;</P>', NULL, 0, 0, 0, 0, N'37013', NULL, N'Slice Fabrique RRP $250.00', NULL, 0, 0, N'', NULL, NULL, 0, 0, N'', NULL, NULL, -1, -1, -1, NULL, NULL, -1, -1, 0, 0, NULL, NULL, 51, NULL); 

我想插入此記錄到MySQL表,但由於slahes問題它不是插入的問題是,我不能使用mysql_real_escape_string我不得不刪除每個手動報價在mysql中的任何功能,可以做到這一點...我有這樣的成千上萬的記錄如何使用查詢插入HTML代碼的MySQL表

回答

1

不要 - 我重複不要把這些東西放到數據庫中。只需將數據放入其中即可。然後,當提取它時,您可以在其周圍放置HTML/CSS鈴聲和哨音。

+0

它是動態佈局,這就是爲什麼我們將它保存到數據庫中的原因 – Anand

+0

只需將它放入數據庫中,即佈局1,2 ...然後,當時間到來刷新網站時,只需更改CSS。除了將原始HTML注入頁面是一個壞主意。它可能會弄亂它,使它看起來不專業。那些人把原始的HTML放到你的數據庫中呢?如果是這樣,請讓我知道,因爲我可以讓您與衆多的廣告客戶保持聯繫...... –