9951 explained code solutions for 126 technologies


php-pdoDelete query example with PHP PDO


$st = $pdo->prepare('DELETE FROM test WHERE age = :age');
$st->execute([':age' => 50]);ctrl + c
$pdo->prepare

prepare given query to execute

$st->execute(

run query on the server

DELETE FROM test

sample DELETE query