1 - Script to update my mysql client 2 - When I leaving the (where id= id";) I doubled the other id just make them the same changes. when I editing the profile of client. I know the problem but do not know what to put there, I tried so meny options and still does not work, 3 - here is my script:
<?php
include('../conect.php');
if(isset($_POST['update']))
// Get values from form
$id=$_POST['id'];
$username=$_POST['username'];
$utilizator=$_POST['utilizator'];
$password=$_POST['password'];
$nivel=$_POST['nivel'];
$departament=$_POST['departament'];
$location=$_POST['location'];
$country=$_POST['country'];
$email=$_POST['email'];
$ip=$_POST['ip'];
$query = "UPDATE utilizatori SET username = '$username', utilizator = '$utilizator', password = '$password', nivel = '$nivel', departament = '$departament', location = '$location', country = '$country', email = '$email', ip = '$ip' where id= id";
$res = mysql_query($query);
mysql_query($update);
echo $update;
mysql_query($query);
echo "Record Updated";
header('location:../user.php');
// close connection
mysql_close();
?>