You need to declared first for :facebook things
create your function if using class like
public function bind($param, $value, $type = null){
if (is_null($type)) {
switch (true) {
case is_int($value):
$type = PDO::PARAM_INT;
break;
case is_bool($value):
$type = PDO::PARAM_BOOL;
break;
case is_null($value):
$type = PDO::PARAM_NULL;
break;
default:
$type = PDO::PARAM_STR;
}
}
return $this->stmt->bindValue($param, $value, $type);
}
then
$sosyalmedyaayarkaydet=$db->prepare("UPDATE ayar SET
ayar_facebook =:facebook,
ayar_youtube =:youtube,
ayar_twitter =:twitter,
ayar_google =:google
WHERE ayar_id=0");
$sosyalmedyaayarkaydet->bind(':facebook', $_POST['ayar_facebook']);
$sosyalmedyaayarkaydet->bind(':youtube', $_POST['ayar_youtube']);
$sosyalmedyaayarkaydet->bind(':twitter', $_POST['ayar_twitter']);
$sosyalmedyaayarkaydet->bind(':google', $_POST['ayar_google']);