This commit is contained in:
Malte Schulze Hobeling 2023-01-18 09:13:01 +01:00
parent c754569143
commit 66a9311cae

View File

@ -114,7 +114,7 @@ class BancaDati {
if($whereString != ""){
$whereString .= " AND ";
}
$whereString .= "`" . $col . "` = '" . $v . "'";
$whereString .= "`" . $col . "` LIKE '" . $v . "'";
}
$sql = "SELECT * FROM ".$table." WHERE ".$whereString.";";
if(isset($order["by"])){
@ -124,8 +124,7 @@ class BancaDati {
$sql .= $order["order"];
}
try {
var_dump($sql);
return $this->pdo->query($sql);
return $this->pdo->query($sql)->fetch();
}catch (PDOException $e){
die;
}