Location: PHPKode > projects > PI-FIND > pi-find/include/vadmc2.php
<?php
session_start();

$idmc=$_GET['id'];
$newlbl=$_POST['lbl'];

include("../include/connect.php");
$sql2="SELECT id_cat_mc FROM MOTCLEES WHERE id_motclees=".$idmc." ;";
	$rq2=odbc_do($cnx,$sql2);
	$res2=odbc_fetch_object($rq2);
	$idcat=$res2->id_cat_mc;

	$sql1="UPDATE MOTCLEES SET lbl_motclees='".$newlbl."' WHERE id_motclees=".$idmc." ;";
$rq1=odbc_do($cnx,$sql1);


odbc_close($cnx);
header("Location:../include/gestmc.php?idc=".$idcat);
?>
Return current item: PI-FIND