# connection with mysql database

**URL:** <https://community.thunkable.com/t/connection-with-mysql-database/33849>\
**Category:** Questions about Thunkable X\
**Created:** [July 1, 2018, 11:14am UTC](https://community.thunkable.com/t/connection-with-mysql-database/33849 "2018-07-01T11:14:34Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![sohil1](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@sohil1](https://community.thunkable.com/u/sohil1)\
**Post date:** [July 1, 2018, 11:14am UTC](https://community.thunkable.com/t/connection-with-mysql-database/33849/1 "2018-07-01T11:14:34Z")

</div>

Hello,

I have tried to connect app to mysql database using php script as per [https://puravidaapps.com/mysql.php](https://puravidaapps.com/mysql.php)

i have put php file on web server(public\_html) directory, and run Mr Taifun’s aia file

but i have get error code 403

please help me on this error

thanks

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 1, 2018, 11:36am UTC](https://community.thunkable.com/t/connection-with-mysql-database/33849/2 "2018-07-01T11:36:44Z")

</div>

Hello,

This error indicates that you can not view the page or the entire site at the address you are requesting. Perhaps the php script needs to be placed in another site folder, where access to php scripts is allowed.

Try to get access to the script and the database from html first. To do this, create a test html page and open it in the browser.

---

<div class="post-metadata">

**Author:** ![sohil1](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@sohil1](https://community.thunkable.com/u/sohil1)\
**Post date:** [July 1, 2018, 11:54am UTC](https://community.thunkable.com/t/connection-with-mysql-database/33849/3 "2018-07-01T11:54:31Z")

</div>

@actech Thanks for reply,

I can access php script through url in web browser, while i put same url in web1 component, it shows error 403.

these is the url :

[http://baxomhealthcare.com/baxomsite/api/apidata.php?actval=view&tblname=employer](http://baxomhealthcare.com/baxomsite/api/apidata.php?actval=view&tblname=employer)

if i run above url through web browswe, it will show result, but If i put it on web component in thunkable, error 403 will shows.

any idea ?

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 1, 2018, 11:57am UTC](https://community.thunkable.com/t/connection-with-mysql-database/33849/4 "2018-07-01T11:57:53Z")

</div>

Do you have an error on Android in Thunkable Classic? In Thunkable X, everything is beautifully displayed in the Web Viewer component.

---

<div class="post-metadata">

**Author:** ![sohil1](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@sohil1](https://community.thunkable.com/u/sohil1)\
**Post date:** [July 1, 2018, 12:15pm UTC](https://community.thunkable.com/t/connection-with-mysql-database/33849/5 "2018-07-01T12:15:53Z")

</div>

Sir,

I have used thunkable classic, Thunkable X also shows errer.

webviewer sussessfully shows all results, but how can i get it on text ?

So I used web component (Under connectivity ) to get its texts

these are blocks:

![blocks%20(1)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/7/a763b73dc84a1635f40b63d1b39e1cdf41b4f17d.png)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 1, 2018, 12:18pm UTC](https://community.thunkable.com/t/connection-with-mysql-database/33849/6 "2018-07-01T12:18:12Z")

</div>

At me now your link even in the browser does not work therefore I can not check up. Can you give me a working link?

I worked with my php scripts through the Web API component. I did not notice the problems on iOS.

---

<div class="post-metadata">

**Author:** ![sohil1](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@sohil1](https://community.thunkable.com/u/sohil1)\
**Post date:** [July 1, 2018, 12:24pm UTC](https://community.thunkable.com/t/connection-with-mysql-database/33849/7 "2018-07-01T12:24:39Z")

</div>

Sir, above mentioned link ([http://baxomhealthcare.com/baxomsite/api/apidata.php?actval=view&tblname=employer](http://baxomhealthcare.com/baxomsite/api/apidata.php?actval=view&tblname=employer))

is successfully run in browser, please check it once again

Thanks,

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 1, 2018, 12:27pm UTC](https://community.thunkable.com/t/connection-with-mysql-database/33849/8 "2018-07-01T12:27:51Z")

</div>

For me, this link does not work in browsers. It works only through a proxy browser. Do you use a paid web server or some kind of free?

Your link does not work for me in the Safari browser on iOS.

---

<div class="post-metadata">

**Author:** ![sohil1](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@sohil1](https://community.thunkable.com/u/sohil1)\
**Post date:** [July 1, 2018, 12:39pm UTC](https://community.thunkable.com/t/connection-with-mysql-database/33849/9 "2018-07-01T12:39:58Z")

</div>

Thank you Sir for continuing answering my query

So are there any solution to connect database / php file with thunkable app ?

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 1, 2018, 12:45pm UTC](https://community.thunkable.com/t/connection-with-mysql-database/33849/10 "2018-07-01T12:45:20Z")

</div>

I worked with my php scripts through the Web API component in Thunkable X. There were no problems.

You have some difficulties with the web-server. If it is normal to send data, then there should be no problems with their use.

---

<div class="post-metadata">

**Author:** ![sohil1](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@sohil1](https://community.thunkable.com/u/sohil1)\
**Post date:** [July 1, 2018, 12:47pm UTC](https://community.thunkable.com/t/connection-with-mysql-database/33849/11 "2018-07-01T12:47:54Z")

</div>

Sir,

Can I get aia file / blocks image that works fine with web server ? so i can make my block as per your block

Thanks

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 1, 2018, 12:54pm UTC](https://community.thunkable.com/t/connection-with-mysql-database/33849/12 "2018-07-01T12:54:45Z")

</div>

I did not work with databases in Thunkable Classic. Here is an example of working with a web server in Thunkable X.

[https://x.thunkable.com/projects/5b24a233308ba938eb687ed6/project/properties/designer/](https://x.thunkable.com/projects/5b24a233308ba938eb687ed6/project/properties/designer/)

---

<div class="post-metadata">

**Author:** ![Angelo\_Angius](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@Angelo\_Angius](https://community.thunkable.com/u/Angelo_Angius)\
**Post date:** [July 6, 2018, 8:13am UTC](https://community.thunkable.com/t/connection-with-mysql-database/33849/13 "2018-07-06T08:13:52Z")

</div>

sorry,  
a link go to the black screen  
🕶

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 6, 2018, 8:19am UTC](https://community.thunkable.com/t/connection-with-mysql-database/33849/14 "2018-07-06T08:19:17Z")

</div>

An example can be viewed in the project on the screen “Get system info”.

[https://x.thunkable.com/projects/5b24a233308ba938eb687ed6/project/properties/designer/](https://x.thunkable.com/projects/5b24a233308ba938eb687ed6/project/properties/designer/)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:02pm UTC](https://community.thunkable.com/t/connection-with-mysql-database/33849/15 "2024-11-08T12:02:09Z")

</div>


