Skip to content

Commit aaaaf56

Browse files
authored
Update edit.php
1 parent cd26663 commit aaaaf56

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/edit.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
}
2626
} else {
2727
// Execute UPDATE
28-
$result = mysqli_query($mysqli, "UPDATE contacts SET name='$name',age='$age',email='$email' WHERE id=$id");
29-
3028
$stmt = $mysqli->prepare("UPDATE contacts SET name=?, age=?, email=? WHERE id=?");
3129
$stmt->bind_param("sisi", $name, $age, $email, $id);
3230
$stmt->execute();
@@ -101,4 +99,4 @@
10199
</table>
102100
</form>
103101
</body>
104-
</html>
102+
</html>

0 commit comments

Comments
 (0)