fix
This commit is contained in:
parent
c754569143
commit
66a9311cae
@ -114,7 +114,7 @@ class BancaDati {
|
|||||||
if($whereString != ""){
|
if($whereString != ""){
|
||||||
$whereString .= " AND ";
|
$whereString .= " AND ";
|
||||||
}
|
}
|
||||||
$whereString .= "`" . $col . "` = '" . $v . "'";
|
$whereString .= "`" . $col . "` LIKE '" . $v . "'";
|
||||||
}
|
}
|
||||||
$sql = "SELECT * FROM ".$table." WHERE ".$whereString.";";
|
$sql = "SELECT * FROM ".$table." WHERE ".$whereString.";";
|
||||||
if(isset($order["by"])){
|
if(isset($order["by"])){
|
||||||
@ -124,8 +124,7 @@ class BancaDati {
|
|||||||
$sql .= $order["order"];
|
$sql .= $order["order"];
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
var_dump($sql);
|
return $this->pdo->query($sql)->fetch();
|
||||||
return $this->pdo->query($sql);
|
|
||||||
}catch (PDOException $e){
|
}catch (PDOException $e){
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user