PHP - How to insert special characters into a database?

Posted by Dodi300 on Stack Overflow See other posts from Stack Overflow or by Dodi300
Published on 2010-04-06T10:20:39Z Indexed on 2010/04/06 10:23 UTC
Read the original article Hit count: 265

Hello. Can anyone tell me how to insert special characters into a MySQL database? I've made a PHP script which is meant to insert some words into a database, although if the word contains a ' then it wont be inserted.
I can insert the special characters fine when using PHPmyAdmin, but it just doesn't work when inserting them via PHP. Could it be that PHP is changing the special characters into something else? If so, is there a way to make them insert properly? Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about insert