HollySpirut
Guest
Illegal mix of collations
Народ, помогите плз.
строка 5 mysql_error() = Illegal mix of collations (cp1251_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation 'like'
$sql="SELECT * FROM `db` WHERE CONVERT(RName`,utf8_general_ci) LIKE '$bukva%'";
Так?
Народ, помогите плз.
PHP:
$bukva=chr($QUERY_STRING+192);
mysql_connect('localhost','root');
mysql_select_db('db');
$sql="SELECT * FROM `db` WHERE `RName` LIKE '$bukva%'";
$r=mysql_query($sql);
$sql="SELECT * FROM `db` WHERE CONVERT(RName`,utf8_general_ci) LIKE '$bukva%'";
Так?