> -----Original Message-----
> From: John Taylor-Johnston [mailto:[EMAIL PROTECTED]]
> Sent: 08 December 2002 19:57
> 
> mysql> SELECT VERSION();
>              -> '3.23.13-log'
> 
> Ok, how do I PHP it for greater than or equals version 4 :?

Simplistic:

   if ($mysql_version[0]>="4") ...

More sophisticated:

   $mysql_ver_parts = explode('.', $mysql_version);
   if ($mysql_ver_parts[0]>=4) ...

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to