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...
I
Okay, this might be an alternate solution to the problem you are facing. Not exactly an answer, though. You need to have php_mysqli.dll
and other extensions in the right place. You need to check in three areas:
php_mysqli.dll
existence in the ext
folder.ext
is correctly referenced.php.ini
files.Another simple solution would be installing a package like those below:
I guess you need to install php5-mysql
.
sudo apt-get install php5-mysql
And restart your apache server, and it should work fine.
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());