[PHP-DB] Incorrect encoding when data read from a mysql database

2010-12-03 Thread Neil Jackson
Hi, I am designing a website that requires storing data in 3 different languages, English, Portuguese and Tetum. When I read the data from the database the accented characters are displayed as a ? in Firefox and Opera, a square in IE and correctly in Chrome How can I convert it on the fly and

[PHP-DB] NULL values

2010-12-03 Thread Ron Piggott
When I do the following query in mySQL only 1 record is retrieved. SELECT * FROM `paypal_payment_info` WHERE `os1` NOT LIKE 'commission_paid' I am surprised by this. This one record has no characters in it, but the “INSERT INTO” that created it used: ( `os1` ) VALUES ( ‘’ ) instead of: (

Re: [PHP-DB] NULL values

2010-12-03 Thread Scotty Logan
On Fri, Dec 3, 2010 at 6:25 PM, Ron Piggott ron.pigg...@actsministries.org wrote: When I do the following query in mySQL only 1 record is retrieved. SELECT * FROM `paypal_payment_info` WHERE `os1` NOT LIKE 'commission_paid' I am surprised by this.  This one record has no characters in it,