i need your help.
i have some input with a button like this.
<input type="text" name="cmsperso" id="cmsperso" />
<input type="text" name="chefdequart" id="chefdequart" />
<input type="text" name="adjoint" id="adjoint" />
<button type="submit" name="perso" onClick="perso()">envoyer</button>
the onClick call an ajax function.
function perso() {
$.ajax({
type: "POST",
url: "form/perso.php",
});}
and in my perso.php, i have this update.
$cnx = mysql_connect( "localhost", "root", "" );
$db = mysql_select_db( "maincourante" );
$req = mysql_query("SELECT idops FROM ops ORDER BY idops DESC LIMIT 1");
$data = mysql_fetch_array($req);
$cmsperso = $_POST["cmsperso"];
$chefdequart = $_POST["chefdequart"];
$adjoint = $_POST["adjoint"];
$perso = utf8_decode("UPDATE `Opérations n°".$data['idops']."` SET cmsperso='$cmsperso', chefdequart='$chefdequart', adjoint='$adjoint'");
mysql_query($perso, $cnx) or die(mysql_error());
mysql_close();
all is working fine exept the update. In phpmyadmin none of the value is update.
please help
