[PHP] Problem about insert some chinese into MySQL db

2003-07-05 Thread Erick
There will have some error of words

I tried addslashes(stripslashes($String))

But also can't work



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Problem about insert some chinese into MySQL db

2003-07-05 Thread Jason Wong
On Saturday 05 July 2003 16:10, Erick wrote:
 There will have some error of words

What errors?

 I tried addslashes(stripslashes($String))
 But also can't work

Try using mysql_escape_string() or mysql_real_escape_string().

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
After the last of 16 mounting screws has been removed from an access
cover, it will be discovered that the wrong access cover has been removed.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Problem about insert some chinese into MySQL db

2003-07-05 Thread Erick
 What errors?

Can't display those words.

-- 

Jason Wong [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó·s»D
:[EMAIL PROTECTED]
 On Saturday 05 July 2003 16:10, Erick wrote:
  There will have some error of words

 What errors?

  I tried addslashes(stripslashes($String))
  But also can't work

 Try using mysql_escape_string() or mysql_real_escape_string().

 -- 
 Jason Wong - Gremlins Associates - www.gremlins.biz
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *
 --
 Search the list archives before you post
 http://marc.theaimsgroup.com/?l=php-general
 --
 /*
 After the last of 16 mounting screws has been removed from an access
 cover, it will be discovered that the wrong access cover has been removed.
 */




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php