I use this in a blank application:
$new_database=‘shop1’;
sc_connection_edit(“conn_mysql”,array(“database”=>$new_database));
And then some code to use the new connection
If I launch this via a direct call with my browser, first time, it doesn’t change the connection (connection remain what it was), 2 attempt works (connection conn_mysql is now on the shop1 database).
Something I miss ?
Also one more question, I would like to include a script in ALL generated application (trying to implement accessibility in Scriptcase programs). Any easy way to do that ?
Thanks
Sylvain