I have use php5.3 and already done with "SET NAMES utf8
";
I am using oscommerce.
PHP code:
tep_db_query("SET NAMES utf8");
$result = tep_db_fetch_array(tep_db_query("select customers_email_address from customers where customers_firstname='" . tep_db_input($fname) . "' AND customers_lastname='" . tep_db_input($lname) . "'"));
my query and error are following:
1267 - Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
select customers_email_address from customers where customers_firstname='Robert' AND customers_lastname='O˜iaas'
[TEP STOP]
Tabel structure is below. I can not update database structure
--
-- Table structure for table `customers`
--
CREATE TABLE IF NOT EXISTS `customers` (
`customers_id` int(11) NOT NULL AUTO_INCREMENT,
`customers_gender` char(1) DEFAULT NULL,
`customers_firstname` varchar(255) NOT NULL,
`customers_lastname` varchar(255) NOT NULL,
`customers_dob` varchar(30) DEFAULT NULL,
`customers_email_address` varchar(255) NOT NULL,
PRIMARY KEY (`customers_id`),
KEY `idx_customers_email_address` (`customers_email_address`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=18109 ;