Insert query with slash in a varchar field with php
I have this query in a php variable:
insert into `activadosmil` set cod='TAB08-150', stock='5',
precio='111.23', categoria='Articulos destacados', subcategoria='PROMOS',
descripcion='YARVIK JUNIOR 8" A9 1GB 8GB KIDO'Z ANDRO',
ean='8717534019003', canon='111.23', fabricante='YARVIK'
And it brokes on descripcion='YARVIK JUNIOR 8" A9 1GB 8GB KIDO'Z ANDRO'
How can i replace the ' in php for the code i need to use for mysql??
No comments:
Post a Comment