query php

From: Date: Fri, 07 Jul 2000 12:38:08 +0000
Subject: query php
Groups: php.db php.windows 
Request: Send a blank email to php-db+get-935@lists.php.net to get a copy of this message
Hi, everybody, i'm in trouble with a query'statemanet that I've to translate from Access to a string to put in odbc_exec(). Here is the sql statement SELECT TitoliPerIndici.ISIN, Titoli.Titolo, TitoliPerIndici.Indice, Titoli.Settore, Titoli.Nazione, Titoli.Capitalizzazione, Format([capitalizzazione]/DSum("[capitalizzazione]","qryIndiciCapitalizzazioni","[indice]='" & [Index] & "'")*100,"0.00") AS Peso FROM Titoli INNER JOIN (IndiciComit INNER JOIN TitoliPerIndici ON IndiciComit.Indice = TitoliPerIndici.Indice) ON Titoli.ISIN = TitoliPerIndici.ISIN WHERE (((TitoliPerIndici.Indice)=[Index])); I know that i've to put all this statement in a var string, but how i resolve this statement to make it work. thanks

« previous php.db (#935) next »