&AGRAVE

Résolu
cs_Batman60 Messages postés 71 Date d'inscription samedi 21 mai 2005 Statut Membre Dernière intervention 21 octobre 2007 - 19 mai 2007 à 12:55
J_G Messages postés 1406 Date d'inscription mercredi 17 août 2005 Statut Membre Dernière intervention 28 août 2007 - 19 mai 2007 à 15:34
bonjour
pourquoi le : à  se transforme en  &AGRAVE dans mySQL
voici mon code:
$_marquetype_update = htmlentities ($_POST['marquetype_trouve'], ENT_QUOTES);

mysql_query("UPDATE vehicules SET marquetype='$_marquetype_update',...........
/-----------------------------------------------
dans ma table: <label for="checkbox_row_2">marquetype</label> |varchar(20), <dfn title ="suédois, insensible à la casse">latin1_swedish_ci</dfn>
/------------------------------------------------

merci d'avance

1 réponse

J_G Messages postés 1406 Date d'inscription mercredi 17 août 2005 Statut Membre Dernière intervention 28 août 2007 10
19 mai 2007 à 15:34
Salut,

Parceque tu utilises "htmlentities"...
string htmlentities ( string $string [, int $quote_style [, string $charset]] )

This function is identical to
htmlspecialchars() in all ways, except with
htmlentities(), all characters which have HTML
character entity equivalents are translated into these entities.


Mais, ce n'est pas très grave :

If you're wanting to decode instead (the reverse) you can use
html_entity_decode().
A+
3
Rejoignez-nous