Answers for "php simple crud view php"

PHP
0

delete in crud php

// ... 

if (isset($_POST['update'])) {
	$id = $_POST['id'];
	$name = $_POST['name'];
	$address = $_POST['address'];

	mysqli_query($db, "UPDATE info SET name='$name', address='$address' WHERE id=$id");
	$_SESSION['message'] = "Address updated!"; 
	header('location: index.php');
}
Posted by: Guest on January-24-2021
0

delete in crud php

<button class="btn" type="submit" name="save" >Save</button>
Posted by: Guest on January-24-2021

Browse Popular Code Answers by Language