![]() |
admin 3/14/2023 |
The general approach would be like this. Point the connection to the first database, retrieve a record, point the connection to the second database, insert the record. |
T
|
Travnicanin author 3/17/2023 |
Well, you have just repeated my idea, but I need a concrete example of how to do it...
This is the algorythm: Please advise. Thank you! |
![]() |
Dalkeith 3/17/2023 |
OK to me this is really a database question and the specific syntax may vary according to the type of database used. Try this This might be helpful as well |
![]() |
admin 3/17/2023 |
This revised question has really nothing to do with PHPRunner, just a matter of crafting and executing SQL queries. Here are some examples for MySQL. Create a database: Create a table: Copy a bunch of records from one table to another: And to execute a free form SQL query in PHPRunner you can use Database API: |
T
|
Travnicanin author 3/18/2023 |
admin & Dalkeith, either I am going in the wrong direction, or you.
Now, please consider the fact that whatever operation is needed, it must be provided to the user to be possible on "one click" of a button. The users don't think about code needed under the button (they don't have to).
|
![]() |
admin 3/18/2023 |
All these SQL queries need to be executed in your code that you need to add to button's Server part. You need to write this code, not your users. Just create a bunch of SQL queries and execute them from button's code, that is all. |