Re: [PHP-DB] $HTTP_POST_VARS

2003-01-27 Thread Micah Stevens
No, if you're trying to store an array in the database, use serialize(); http://www.php.net/manual/en/function.serialize.php Something like this: $serialized_data = serialize($HTTP_POST_VARS); $serialized_data = addslashes($serialized_data); mysql_query("INSERT INTO ads (post_vars, createdate)

RE: [PHP-DB] $HTTP_POST_VARS

2003-01-27 Thread John W. Holmes
> 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 wha

[PHP-DB] $HTTP_POST_VARS

2003-01-27 Thread Addison Ellis
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) thanks again, addison ellis -- Addison Ellis small independent publishing co. 114 B 29th Ave