Welcome Guest, Not a member yet? Register   Sign In
How to check database driver name
#1

[eluser]Unknown[/eluser]
I am writing a library and I would like to know which database project is using
there is a small difference if it is MySQL or PostgreSQL...

Is it a field or method what will return database driver name like

$this->db->driver_name ()
what will return 'mysql' or 'postgre' according to what $this->db is driving on ?

Bensiu


Messages In This Thread
How to check database driver name - by El Forum - 08-18-2010, 09:59 AM
How to check database driver name - by El Forum - 08-18-2010, 10:02 AM
How to check database driver name - by El Forum - 08-18-2010, 10:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB