RE: [PHP] Can I check MYSQL version

2002-12-09 Thread Ford, Mike [LSS]
> -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 s

Re: [PHP] Can I check MYSQL version

2002-12-08 Thread Chris Knipe
L PROTECTED]> Sent: Sunday, December 08, 2002 9:57 PM Subject: Re: [PHP] Can I check MYSQL version > mysql> SELECT VERSION(); > -> '3.23.13-log' > > Ok, how do I PHP it for greater than or equals version 4 :? > > John > > Johannes Schlueter w

Re: [PHP] Can I check MYSQL version

2002-12-08 Thread Stephen
t, I haven't tested it. Hope it does though. - Original Message - From: "John Taylor-Johnston" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 08, 2002 2:57 PM Subject: Re: [PHP] Can I check MYSQL version > mysql> SELECT VERSION(); >

[PHP] Typo -- Re: [PHP] Can I check MYSQL version

2002-12-08 Thread Johannes Schlueter
On Sunday 08 December 2002 20:40, Johannes Schlueter wrote: > SEELCT VERSION(); Should be SELECT VERSION() ;-) johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can I check MYSQL version

2002-12-08 Thread John Taylor-Johnston
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' els

Re: [PHP] Can I check MYSQL version

2002-12-08 Thread Johannes Schlueter
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

[PHP] Can I check MYSQL version

2002-12-08 Thread John Taylor-Johnston
Hi, Can I check mysql version so if version >= 4 $sql = 'version 4 stuff' else $sql ="version 3 stuff"; -- John Taylor-Johnston - "If it's not open-source, it's Murphy's Law." - Université de Sherbrooke: