# Retrieving data from mysql via php

**URL:** <https://forum.ionicframework.com/t/retrieving-data-from-mysql-via-php/56005>\
**Category:** ionic-v3\
**Created:** [June 28, 2016, 7:09am UTC](https://forum.ionicframework.com/t/retrieving-data-from-mysql-via-php/56005 "2016-06-28T07:09:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gatewayapp](https://avatars.discourse-cdn.com/v4/letter/g/9dc877/32.png) [@Gatewayapp](https://forum.ionicframework.com/u/Gatewayapp)\
**Post date:** [June 28, 2016, 7:09am UTC](https://forum.ionicframework.com/t/retrieving-data-from-mysql-via-php/56005/1 "2016-06-28T07:09:45Z")

</div>

Hey guys

Any help in how to retrieve data from mysql and display into ionic app  
like i want to retrieve the location and name of city and display it in a select option i have a good kowldege in php but in ionic 2 i am beginner

Regards

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [June 28, 2016, 9:17pm UTC](https://forum.ionicframework.com/t/retrieving-data-from-mysql-via-php/56005/2 "2016-06-28T21:17:54Z")

</div>

You might want to learn a few more things in angular 2 before trying to achieve this.  
You cannot directly call a DB, but rather, you have to setup a rest API that calls the Database instead.

---

<div class="post-metadata">

**Author:** ![Gatewayapp](https://avatars.discourse-cdn.com/v4/letter/g/9dc877/32.png) [@Gatewayapp](https://forum.ionicframework.com/u/Gatewayapp)\
**Post date:** [June 30, 2016, 9:18am UTC](https://forum.ionicframework.com/t/retrieving-data-from-mysql-via-php/56005/3 "2016-06-30T09:18:09Z")

</div>

> [@mhartington](#):
>
> annot directly call a DB, but rather, you have to setup a rest API that c

okay thank you 😊
