Regarding this line
database::query("DELETE FROM bo WHERE name='{$this->_protected_arr[a1]}' AND email='$_SESSION[email]'");
How can I update it so that it only deletes one row instead of all of them.
Also, the syntax looks off, is there any way not to use the {}.
Also, normally PHP calls warnings if ther are no apostrohpes in associative array but it does not pick it up in this case. So this seems wrong as well.
So this is actually 3 questions.
Use a
LIMIT 1clause at the end of the query.It’s correct. It’s what PHP calls the “complex (curly) syntax” for variable parsing in strings:
http://php.net/manual/en/language.types.string.php#language.types.string.parsing.complex
You can of course use string concatenation there if you prefer.