php code

mail@pastecode.io avatar
unknown
php
2 years ago
254 B
21
Indexable
Never
<?php
require_once('database.php');

$nome=$_POST['nome'];

$query = "SELECT * FROM intestazioni_formule WHERE nome LIKE '%$nome%'";
$stm = $db->prepare($query);
$stm->execute();
$row = $stm->fetchAll(PDO::FETCH_ASSOC);

echo json_encode($row);