RE: [PHP-DB] $HTTP_POST_VARS
| From: | John W. Holmes | Date: | Tue, 28 Jan 2003 06:40:57 +0000 |
| Subject: | RE: [PHP-DB] $HTTP_POST_VARS | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-25194@lists.php.net to get a copy of this message | ||
> hello,
> will this work?
>
> $sql = "INSERT INTO ads ($HTTP_POST_VARS,createdate)
> VALUES ('$key','$today')";
> mysql_query($sql);
>
> i have this at the top:
>
> foreach ($HTTP_POST_VARS as $key => $value)
No. Not sure how to tell you to do it, though, as I'm not sure what
you're trying to accomplish. Putting $HTTP_POST_VARS into a string is
just going to cause it to output 'Array'.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/