By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,247 Members | 1,287 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,247 IT Pros & Developers. It's quick & easy.

anyone know where to get help in PEAR PHP or where there are forums?

P: n/a
I am trying to insert the current date into a database from within an
HTML_QuickForm document. Any suggestions on how? Also does anyone know
if it is possible to to use regular php type queries from within a
HTML_QuickForm document and whether you can put functions (like NOW())
as an argument to addelement()? Also, are there any forums dedicated to
PEAR or QuickForm?
Thanks.

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
wi********@gmail.com wrote:
I am trying to insert the current date into a database from within an
HTML_QuickForm document. Any suggestions on how? Also does anyone know
if it is possible to to use regular php type queries from within a
HTML_QuickForm document and whether you can put functions (like NOW())
as an argument to addelement()? Also, are there any forums dedicated to
PEAR or QuickForm?


I haven't tested this, but in the doc for "prepare" it says that you
can use the "!" placeholder to litelarly insert something. So perhaps
something like "now()" could be added there. But you should be able to
create a correct format of the string with a combo of "date" and
"mktime" functions as well, and then just use "?" placeholder.

Ofcourse, if you always insert "now", you could consider if the
"timestamp" column type would do the trick.

/Marcin
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.