|
| |
Displaying MySQL Version running |
We can easily get the version of MySQL running by using php code. This script assumes that you already established MySQL connection and it is working fine.
We will use one select query command to get the data from running mysql database. Here is the code.
$t=mysql_query("select version() as ve");
echo mysql_error();
$r=mysql_fetch_object($t);
echo $r->ve;
How to get PHP Version ?
| |
|
|
|