Are you using mysqli_* or PDO? It looks like you are using mysqli_* in your SQL statement, but then seem to be executing the bind placeholders in the ->execute line. This only works with PDO. So you really need to determine which database API you want to use. Then learn the correct way of inserting data into a database.