“supprimer mysql php” Réponses codées

Php mysql supprimer les données

<?php
$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "myDB";

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
  die("Connection failed: " . $conn->connect_error);
}

// sql to delete a record
$sql = "DELETE FROM MyGuests WHERE id=3";

if ($conn->query($sql) === TRUE) {
  echo "Record deleted successfully";
} else {
  echo "Error deleting record: " . $conn->error;
}

$conn->close();
?>
naly moslih

supprimer mysql php

$query = $conn -> query("DELETE FROM table_name WHERE some_column = some_value");
if ($query){
	echo "success";
}
Undefined

Réponses similaires à “supprimer mysql php”

Questions similaires à “supprimer mysql php”

Plus de réponses similaires à “supprimer mysql php” dans PHP

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code