Re: Forward compatible double declaration

From: Date: Thu, 03 Aug 2000 18:00:42 +0000
Subject: Re: Forward compatible double declaration
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-27670@lists.php.net to get a copy of this message
Hi! >>>>> "Manuel" == Manuel Lemos <mlemos@acm.org> writes: Manuel> Hello Paul, Manuel> On 30-Jul-00 18:23:05, you wrote: >>> BTW, is there a way to query a MySQL server to figure supports DOUBLE >>> values without a fixed number of decimal places, maybe by checking the >>> server version? >> SELECT VERSION() will give you the server version number as a string. >> Perhaps you could check that. Manuel> How do I execute a query like that in PHP when there does not exist any Manuel> database in the server? PHP requires that you select a database first Manuel> before executing any queries. Since you can run a "database-less" without Manuel> having any databases created in the server, could this be a limitation of Manuel> PHP? Try selecting the database '' (empty). If this doesn't work, you can always try to use the database 'test' ; In all normal MySQL installations this database exists... (Not perfect, but better than nothing..) Regards, Monty

« previous php.dev (#27670) next »