php - Sql Update Error

Solution:
You need to change your query like below:-
$sql = $db->prepare("UPDATE uyeler SET fname=?, lname=?, mail=?, password=?, country=?, sex=?, facebook=?, twitter=?, instagram=?, snapchat=? WHERE mail ='{$_SESSION['kullanici']}'");
Note:- it will be better if youparameterized
. your lastSESSION
value also in the same way.
Answer
Solution:
YourUPDATE
query is incorrect. You have to explicitly assign value for each column
$sql = $db->prepare("UPDATE uyeler SET fname = ?, lname = ?, ... WHERE mail ='{$_SESSION['kullanici']}'");
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: script cache:clear returned with error code 255
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.