Re: PHP/postgres form INSERT question

From: Date: Thu, 07 Dec 2000 16:28:48 +0000
Subject: Re: PHP/postgres form INSERT question
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-5079@lists.php.net to get a copy of this message
Great, thanks. Looks like that's it. I'm using the while loop. Thanks again, John On Thu, 7 Dec 2000, Alexey Borzov wrote: > Greetings, John! > > At 07.12.2000, 12:12, you wrote: > JS> I'm working on a software survey and have 30 categories that will be voted > JS> on. I've set it up so each cat is it's own table with only two fields, app > JS> and rank. Also there is to be one submit button which will post all the > JS> variables. Is there a way to for loop through the vars. Or an > JS> if(there_is_a_variable()) statement. > > You can loop: > > while (list($appname, $rank) = each($HTTP_POST_VARS)) { > // do your DB stuff here > } > > Or you can check: > if (!empty($that_particular_appname)) { > // do your DB stuff here > } > > >

« previous php.db (#5079) next »