PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
You've got a mix of mysql_ and mysqli_ in there. mysql_ has been deprecated; don't use it. You're passing unescaped data directly into your query. This is not safe at all. Sanitize your inputs or, better, make use of prepared statements. Finally, you've specified the values but not the columns. If you have more than just those two columns in your database table, MySQL won't know what goes where and will complain.