You are here: Re: how to put variables out of the loop? « PHP Programming Language « IT news, forums, messages
Re: how to put variables out of the loop?

Posted by Juliette on 11/11/05 01:21

Ja NE wrote:
> Juliette <jrf_no_spam@jokeaday.net> wrote:
>
>
<snip>
>
>>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
>

You must have overlooked part of my answer...
Go back to my first mail and read again.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация