$stmts = $this->db->prepare("SELECT user_id FROM usersSettings WHERE ?=?");
$stmts->bind_param("ss", $method,$percent);
"SELECT user_id FROM usersSettings WHERE ss=$method";
$stmts = $this->db->prepare("SELECT user_id FROM usersSettings WHERE ?=?");
$stmts->bind_param("ss", $method);
Find more questions by tags PHP
$percent = 5;
Should be prepared with the bindu:
SELECT user_id FROM usersSettings WHERE volume=5
But if you use my code, I have not framed volume in the first "?" - alden73 commented on June 8th 19 at 16:40
$stmts->bind_param($method,$percent); - violet_Dibbe commented on June 8th 19 at 16:43