2 database and one script - possible?

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
bambinou
Veteran Member
Posts: 163
Joined: 2013-02-01 15:09

2 database and one script - possible?

Post by bambinou » 2013-06-28 09:36

Hi ,

I would like to know if it is actually possible to link 2 database to one single script? Is there a trick for that?

Thank you,

Ben

User avatar
a.gneady
Site Admin
Posts: 1281
Joined: 2012-09-27 14:46
Contact:

Re: 2 database and one script - possible?

Post by a.gneady » 2013-07-01 20:37

Hi Ben,

If you want to retrieve data from 2 separate database in the same script, you need to open 2 connections, one to each database, and then pass the connection handler to the query function to specify which database you are querying. See the selected answer to the question at: http://stackoverflow.com/questions/2748 ... le-webpage
:idea: AppGini plugins to add more power to your apps:
  • DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
  • Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
  • Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.

bambinou
Veteran Member
Posts: 163
Joined: 2013-02-01 15:09

Re: 2 database and one script - possible?

Post by bambinou » 2013-07-01 20:42

Thank you Ahmed:-)

User avatar
a.gneady
Site Admin
Posts: 1281
Joined: 2012-09-27 14:46
Contact:

Re: 2 database and one script - possible?

Post by a.gneady » 2013-07-01 20:56

You're always welcome :D
:idea: AppGini plugins to add more power to your apps:
  • DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
  • Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
  • Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.

Post Reply