Re: talking directly w/ MySql

From: Date: Thu, 25 Oct 2001 17:00:10 +0000
Subject: Re: talking directly w/ MySql
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-72236@lists.php.net to get a copy of this message
Hey man, when I ask you how is 2+2 you will answer -> 4 but when I ask you how is 2*3.141596535 you use a calculator. In both cases I speak with you(make a connection). In the first case you don't need to use calc because you don't have to use it. PHP and Mysql are two standalone apps and when PHP wants to communicate with mysql a connection is needed. On Thursday 25 October 2001 06:50 am, you wrote: > SELECT 1+1 doesn't really need a connection... > or any other statments that doesn't address a table or database, > SELECT SUBSTRING('test', 1, 2); > > etc etc.. > > I guess it is not possible though... > > "Kodrik" <kodrik@zc8.com> wrote in message > news:01102501564104.02628@cm166.52.234.24.lvcm.com... > > > > how can i issue such statments w/o opening a connection? > > > > I you don't open a connection, how is mysql supposed to know which db you > > are > > > talking to?

« previous php.general (#72236) next »