Re: PHP/postgres form INSERT question
| From: | Alexey Borzov | Date: | Thu, 07 Dec 2000 09:16:14 +0000 |
| Subject: | Re: PHP/postgres form INSERT question | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-5074@lists.php.net to get a copy of this message | ||
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
}
--
Yours, Alexey V. Borzov, Webmaster of RDW