Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
I am new to Couch and am really enjoying the development progress of my own project using Couch.

My query is how can I access another database that is not created by Couch but in the same server using PHP and Couch tags. I would like the results to be populated on a Couch page when a registered user enters his/her username in a text box.

Can I use PHP or combine PHP and Couch tags for security.

Thanks.

Harris
Hi,

I'm afraid, Couch works with only one database connection throughout the life-cycle of a page.
So it won't be possible to use Couch tags with another database connection during the same execution.

However, you can use raw PHP or Couch equivalent <cms:php>..</cms:php> tag to query the other database independently and output the results on a Couch managed template. This process will remain exactly the same as you'd have used in normal PHP.

Please let us know if you have any questions.
2 posts Page 1 of 1