I'm writing a utility for GPL and a query I want to run is only available on MySql 4.1. I'll leave it in for those people with it because it's more efficient but I'll need something else for the people on earlier versions (like me!). So I need to know which code to run ...
How, within php do I query the database to get it's version?