|
Posted by Ja NE on 11/10/05 22:31
Juliette <jrf_no_spam@jokeaday.net> wrote:
> > And concerning the query... you need to use the WHERE clause.
> >
sure, just forgot to add it here
>
> Oh .. and if it is defined within a function (which it isn't by the
> looks of it), you can then return it by doing:
no, this one wasn't.
>
> return $sqlblock;
>
> If the code is not within a function, you can just use $sqlblock wherever.
in any case, it returns to me only the last $sqlblock, not all of them.
that is problem.
I need a way to put them all together after the loop.
in the loop script will define 1 or more $sqlblock, if is only one,
that's good (and, btw, all that mess is unnecessary) but if there are
more than one (and what was reason I started looking for solution) how
can I get them in one line?
obiously I need to create one variable from that array containing
$sqlblock[0], $sqlblock[1], $sqlblock[2]... and that is where I don't
know what to do...
$blockarray[$justnum]=$sqlblock;
array($blockarray);
will create array containing all my $sqlblock, but I can't find way to
put them latter in search query which, I think, must end like:
SELECT id,uname,name,famname FROM my_table WHERE $sqlblock[0]
$sqlblock[1] $sqlblock[2] ORDER BY id ASC
any more ideas?
tnx
--
Ja NE
http://fotozine.org/?omen=janimir
--
Navigation:
[Reply to this message]
|