Bonjour,

Uncaught mysqli_sql_exception: Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb3_general_ci,COERCIBLE) for operation '='


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
if (!Empty ($vv[22]))
{
if (isSet ($Fab_Tab[$vv[22]])) $vv[22] = $Fab_Tab[$vv[22]];
 
$requete = "SELECT col_1 FROM table WHERE col_2 = '" . $vv[22] . "'";
 
if (mysqli_num_rows (mysqli_query ($connexion, $requete)) == 0) $Tab_Equi[$vv[0]] = $vv[22];
 
}

col_1 = INT
col_2 = varchar(40) INTERCLASSEMENT utf8mb4_unicode_ci

Je ne comprends pas l'erreur.
Je suppose qu'il faut ajouter un COLLATE quelque part mais où ?

Merci d'avance de votre aide.