oh gawd... get the spoons... $query = mysql_query("select version as version") while ($result = mysql_fetch_row($query)) { // do a strcmp() or ereg() on $row['0'] }
----- Original Message ----- From: "John Taylor-Johnston" <[EMAIL PROTECTED]> To: <[EMAIL 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 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 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php