SQL PHP HTML ASP JavaScript articles and free scripts to download
 

Displaying MySQL Version running

If you are using phpmyadmin then go to the home page and at the top you will get the version of phpmyadmin along with mysql version number.

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 ?




tommi16-03-2009
thanks, it works...
Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked


Join Our Email List
Email:  
For Email Newsletters you can trust
SQL Tutorial List
SQL Commands
SQL Sections
Date & Time
Join Table
String
Math