Re: [PHP] elegant way of doing something else the last timethrough a loop? SOLVED

2003-07-16 Thread Petre Agenbag
Hi Yes, I see your point. Guess I'm way too trusting a person, should think like a criminal... So you're basically saying I should always place sensible "default values" in my script and then compare the $_POST vars, else stick to the default, ie, have the $_POST overwrite your default before the

Re: [PHP] elegant way of doing something else the last timethrough a loop? SOLVED

2003-07-14 Thread Petre Agenbag
Following works nicely for me now, thanks all! connect("localhost","user","password","table"); $table_name = "main"; if ($_POST[any_all] == "any") { $logic = "or"; } elseif ($_POST[any_all] == "all") { $logic = "and"; } elseif ($_POST[any_all] == "exact") { $logic = "exact

Re: [PHP] elegant way of doing something else the last timethrough a loop?

2003-07-14 Thread Petre Agenbag
Sheer genius my man! Thanks! On Mon, 2003-07-14 at 13:38, Tom Rogers wrote: > Hi, > > Monday, July 14, 2003, 9:11:11 PM, you wrote: > PA> HI list > > PA> Is there an elegant way to know when the last time through the loop is > PA> going to be and to do something else? > > > PA> I want to sear