I know there are quite a few forums out there talking about this problem in stackoverflow but none seem helped so....trying to see if anyone else can give me a hand...
1) Make sure that php_mysqli.dll is present in your directory.
2) Does your id auto_increment? If yes, then you dont have to insert it to your table.
Check your syntax. Try this:
mysqli_query($db, "INSERT INTO books(title) VALUES('the nose')") or die(mysqli_error());