Hi, I am suppose to set up a simple database system for my company. Currently we have 2 shared hosting server which supports PHP, but when I try to execute a simple
$mysqli = new mysqli('localhost','root','pw123');
for establishing connection to the database, it shows:
Fatal error: Cannot instantiate non-existent class: mysqli in C:\Home\intuitionconsulting\public_html\scripts\test\index2.php on line 3
I've tried setting up my laptop as development station, it has php5, and mySQL4.1
even with the "automatic install" of PHP5, it end up missing the "mysqli.dll" file.
I've worked around it by downloading the file and putting in appropriate folder, and altering the php.ini file.
the thing is, if I rented a shared hosting, I won't have the access to do this kind of stuff
So what am I suppose to do now?
PS: I am still very new to PHP, was picking up how to connect to the DB, when I encountered this error.
or is there a "older php version friendly" way of communicating to database?