I have a really simple prepared statement as specified below:
$sql = "INSERT INTO transactions(?, ?, ?) VALUES (?, ?, ?)";
but when I go to prepare this:
$stmt = $conn->prepare($sql);
the function returns false (indicating the prepared statement failed), which then causes the Call to a member function bind_param() on bool
error later in the code. Why is this syntax failing?