Chodzi mi o fragment tego skryptu odpowiadający za update rekordu w bazie.
Nie wiem jak powiązać wstawiane dane z id. Mianowicie gdy wstawiam wartość id = 1 - zapisuje bez problemu,
ale gdy daje "where id = $id" wtedy nic się nie dzieje. Chodzi o to żeby rekord był zupdatowany dla użytkownika o określonym id.
//This is the directory where images will be saved $target = "wyslane/"; //This gets all the other information from the form $id =$_POST['id']; $name=$_POST['name']; $pic=($_FILES['photo']['name']); // Connects to your Database //Writes the information to the database //mysql_query("INSERT INTO `employees` VALUES ('$name', '$pic')") ; //Writes the photo to the server { //Tells you if its all ok } else { //Gives and error if its not }