Right now I've been using something along the lines of:
$mysqli->prepare("INSERT INTO names VALUES('$name')");
Is this less safe than using bind_param/bind_value or does it not matter and it's the prepare itself that makes it safe?
I've always been curious, I think using bind_param/bind_value is safer but I don't really know. Sorry if this is a duplicate as I couldn't actually find any other question (I don't really know how to phrase this question, so that's probably why).