hi thank you for your response, I did make that mistake when I first wrote the code but subsequently fixed it.
The relevant code is as follows:-
as you can see I have tried
I have also tried
but that does not work either, in both cases it displays an error saying the following:-
The connect function is in the main class which works fine (code for that not shown), the query function is called from a class in common.php which has a class in mysql.php that it is being extended from (that is the database type being used in this case). The mysql.php containing class is included when the class finds out what database type is being used.