Which password permissions? The database permissions are looking fine from here (the password change API should be fixed now so it doesn’t break the database permissions anymore).
The Access denied confused me. thank you for this ![]()
With how often the password was set, shared and changed, it might just be that the password in the scripts is not the right one.
Password is right,only this error now:
Fatal error : Uncaught Error: Call to undefined method mysqli_result::fetch() in /home/vol15_8/epizy.com/epiz_24665691/htdocs/reacties.php:49 Stack trace: #0 {main} thrown in /home/vol15_8/epizy.com/epiz_24665691/htdocs/reacties.php on line 49
Line 49 is this: while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
$query = “SELECT reacties.id, personen.naam, personen.email, reacties.reactie, reacties.datum
FROM personen, reacties
WHERE reacties.persoon_id = personen.id
ORDER BY reacties.datum”;
$result = $db->query($query);
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
echo “
Van:
” . $row[“naam”] . "
Op:
" . $row[“datum”] . “\n”;
echo “
” . $row[“reactie”] . “\n”;
echo “ \n”;
echo “
Verwijder
\n”;
}
Try to use $result->fetch_assoc() instead of $result->fetch(PDO::FETCH_ASSOC).
Uh oh! You forgot to close the other parenthesis! Correct this:
while ($row = $result->fetch_assoc() {
with this:
while ($row = $result->fetch_assoc()) {
!
Remove array($reactie_id) from $stmt->execute().
Try to put this before $stmt->execute();:
$stmt->bind_param("i", $reactie_id);
Try to put this in the $query value:
DELETE * FROM reacties WHERE id = ?
I think $query had an invalid MySQL statement now, and mysqli::prepare returned a boolean with value false. What tables will you be going to delete for your comments?
You can see them via your phpMyAdmin, by selecting the table on which you are going to delete the values.
Then try to remove the * after DELETE on the SQL query. My bad.
$stmt->execute();
Edit: you also did my previous mistake!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.