sql_version

The sql_version() function simply returns the version number of the database manager.

It accepts 2 optional parameters:

  1. $serveur,
  2. $option.

Usage:

$x = sql_version();
echo $x;
// depending on the type of server, we might see:
// for MySQL:   5.1.37-1ubuntu5.1
// for SQLite2:  2.8.17
// for SQLite3:  3.6.16

Author Mark Baber Published :

Translations : English, français