I would like to use the mysqli functions as mysql functions are/will be depreciated in PHP.
Everytime I include the db_mysqli connector and turn on the log I recieve these errors:
====================================
Log started, 09/03/2016 01:05:18
====================================
mysql_real_escape_string() expects parameter 2 to be resource, object given at C:\wamp\www\MeetingRooms\codebase\connector\db_common.php line 1116
mysql_real_escape_string() expects parameter 2 to be resource, object given at C:\wamp\www\MeetingRooms\codebase\connector\db_common.php line 1116
SELECT `id`,`start_date`,`end_date`,`text` FROM events WHERE `start_date` < '' AND `end_date` > ''
mysql_query() expects parameter 2 to be resource, object given at C:\wamp\www\MeetingRooms\codebase\connector\db_common.php line 1098
mysql_fetch_assoc() expects parameter 1 to be resource, null given at C:\wamp\www\MeetingRooms\codebase\connector\db_common.php line 1108
Done in 0.0064840316772461s
I would expected the code to use the mysqli functions. could some one help.
Many Thanks