webent Posted June 16, 2008 Share Posted June 16, 2008 Hi, I was wanting to keep the mysql version dynamically updated on one of my pages... I use... echo (phpversion()); ...to get the phpversion... I was thinking that this would work... echo phpinfo(Client API version); ...but it doesn't... Any ideas anyone? Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted June 16, 2008 Share Posted June 16, 2008 http://php.net/mysql_get_server_info Quote Link to comment Share on other sites More sharing options...
webent Posted June 16, 2008 Author Share Posted June 16, 2008 Thanks, worked great... Here's the final code... include_once "connection.php"; $mysql_version = mysql_get_server_info(); $search = array("-", "standard", "log"); $mysql_version = str_replace($search,"",$mysql_version); echo $mysql_version; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.