What I mean is basically for example PHP, PHP can be used both to output data onto the client/browser and to connect/query databases.

Would it then be both a client side and a server side programming language?

Or is it still a server-side language as it's main use is database querying

Javascript too, js can be used as a client side language which is what it is but it can also be used to establish a connection to a database, does that then make it both a server and client side programming language?

thanks.