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

$iduniqueUser=$_GET['iduniqueUser'];

$id=$_POST['id'];
$mdp=$_POST['mdp'];

include("../include/connect.php");
if($iduniqueUser==0){
	$sql1="INSERT INTO USER(id_user,mdp_user ) ".
		"VALUES ('".$id."','".$mdp."');";
}
else{
	$sql1="UPDATE USER SET id_user='".$id."' ,mdp_user='".$mdp."' WHERE idunique_user=".$iduniqueUser." ;";
}
$rq1=odbc_do($cnx,$sql1);
odbc_close($cnx);
header("Location:../main/user.php");
?>
Return current item: PI-FIND