Mam takie zapytanie:
$id_img = "b"; $email = "a@mail.com"; $a = $db->prepare("INSERT INTO `baza`.`b` (`id`, `name`, `owner`, `ad_id`) VALUES (NULL, ':id_img', ':email', '5')"); $a->bindParam(':id_img', $id_img); $a->bindParam(':email', $email); $a->execute();
i do bazy dodaje mi :id_img oraz :email.
Co robię źle?
Pozdrawiam.
@Edit
Rozwiązane,
Zapomniałem usunąć '' z zapytania.