Afficher un message
Vieux 01/10/2007, 10h49   #4
Captain Paralytic
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Variable in Select statement?

On 1 Oct, 10:46, GarryJones <mor...@algonet.se> wrote:
> Great, that worked.
>
> The next problem is I now need to test for a value in the select
> statment to see if it is in an array.
>
> $ml_collect_ind="SELECT * FROM ml_lopp WHERE scfmnum=$scfchknum AND
> ((in_array(loppnum, $arr_motlopp))=TRUE) ORDER BY sank, loppnum";
>
> This should return all fields where 'scfmnum' is $scfchknum and the
> associated value 'loppnum' is in the array.
>
> Needless to say its syntax again..
>
> Any much appreciated
>
> Garry Jones
> Sweden


$ml_collect_ind="SELECT * FROM ml_lopp WHERE scfmnum=$scfchknum AND
" .
((in_array(loppnum, $arr_motlopp)) . "=TRUE) ORDER BY sank, loppnum";

  Réponse avec citation
 
Page generated in 0,04906 seconds with 9 queries