Re: Can I check MYSQL version
| From: | John Taylor-Johnston | Date: | Sun, 08 Dec 2002 19:57:07 +0000 |
| Subject: | Re: Can I check MYSQL version | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-127446@lists.php.net to get a copy of this message | ||
mysql> SELECT VERSION();
-> '3.23.13-log'
Ok, how do I PHP it for greater than or equals version 4 :?
John
Johannes Schlueter wrote:
> On Sunday 08 December 2002 20:42, John Taylor-Johnston wrote:
> > Hi,
> > Can I check mysql version so if version >= 4 $sql = 'version 4 stuff' else
> > $sql ="version 3 stuff";
>
> Try this SQL-Statement:
>
> SEELCT VERSION();
>
> MySQL-Manual:
> http://www.mysql.com/doc/en/Miscellaneous_functions.html
>
> johannes