Answers for "db php delete rows"

SQL
1

how to delete data from database in php

TRUNCATE TABLE [table_name]
Posted by: Guest on June-12-2021
0

deleting a row from databse using php

if (isset($_GET['del'])) {
	$id = $_GET['del'];
	mysqli_query($db, "DELETE FROM info WHERE id=$id");
	$_SESSION['message'] = "Address deleted!"; 
	header('location: index.php');
}
Posted by: Guest on January-24-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language