1
J'éprouve des difficultés exécutant la commande suivante en PHP:appel MYSQL PHP pour TRIM
$con = mysql_connect("host", "username", "password") or die ("Unable to connect to server");
mysql_select_db("database") or die ("Unable to select database");
$sql = "UPDATE `table` SET `column` = TRIM(BOTH '"' FROM `column`)";
mysql_query($sql);
echo "quotation mark removed";
mysql_close($con);
La question doit faire avec la syntaxe, je crois. Plus précisément, la partie BOTH '"' FROM
. Comment puis-je écrire cet appel $ sql pour qu'il soit compris par PHP?
Ce fut ma tentative BOTH '"."""."' FROM
parfait, merci ':)' – Presto