Afficher un message
Vieux 01/10/2007, 11h59   #6
GarryJones
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Variable in Select statement?

That looks okay, but I can not get it working...

The declaration

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

Gives me the following echo

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

It fails to find anything valid when the first "where" condition is
correct and the other value is in the array,

Is there something in the wrong place?

All appreciated

Garry Jones
Sweden





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