F fasilosman Active Member Licensed User Longtime User Jun 5, 2013 #1 Hi all, I am new to B4A. I would link to connect My Sql remote database. I went through the tutorial- http://www.b4x.com/forum/basic4andr...-connect-android-mysql-database-tutorial.html But I can't understand where to put the PHP Script and how to edit the followings to my server settings in B4A application $databasehost = "localhost"; $databasename = "xxxx"; $databaseusername ="xxxx"; $databasepassword = "xxxx"; Please explain me how to do that. Thanks :sign0013:
Hi all, I am new to B4A. I would link to connect My Sql remote database. I went through the tutorial- http://www.b4x.com/forum/basic4andr...-connect-android-mysql-database-tutorial.html But I can't understand where to put the PHP Script and how to edit the followings to my server settings in B4A application $databasehost = "localhost"; $databasename = "xxxx"; $databaseusername ="xxxx"; $databasepassword = "xxxx"; Please explain me how to do that. Thanks :sign0013:
aalekizoglou Member Licensed User Longtime User Jun 6, 2013 #2 I know Erel has post a great tutorial on how to connect to remote MySQLDB using httputils2. I have elaborated on this and given a PHP script I have build (mysqltunnel.php), I've written a class which gives a working DBMySQLConnection/DBMySQLDataset/DBField. There is also a B4A demo to show you to work with this. Of course you need to put the mysqltunnel.php in your PHP/MySQL server. You could check out here [Class] DBMySQL connect via MySQL Tunnel Upvote 0
I know Erel has post a great tutorial on how to connect to remote MySQLDB using httputils2. I have elaborated on this and given a PHP script I have build (mysqltunnel.php), I've written a class which gives a working DBMySQLConnection/DBMySQLDataset/DBField. There is also a B4A demo to show you to work with this. Of course you need to put the mysqltunnel.php in your PHP/MySQL server. You could check out here [Class] DBMySQL connect via MySQL Tunnel