I'm attempting to create a database, and then connect that database to angular, so I can display simple blog like messages.
How would I achieve this? I understand that the easiest way would probably be to write a PHP service to retrieve the data from the database and then call that service from angular, but I have no idea where to even start.
Any direction would be greatly appriciated.
Related
i have a Application with a database and i want update the database from net
i used downloading whole database and extract file in database folder but some time get wrong I'd like some advice if there is a better way to do it
You need to create a webservice. This can be done in PHP (I also use RESTful Api's). These services will return JSON which you can parse through.
Try this out:
http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/
am thinking to make a android multiplier game. Am looking for API which can connect to my database and access data continuously. In my mind i have a idea about this. I know how to connect to database with php and access data. But the problem is i cant figure out how to access data continuously until game runs. If you have a new idea please share it with me. Or else suggest me some API's or some methods or some links which may be useful. Any help will be appreciated.
Hi there okay so my goal is to get the information/data from my MySQL database and display it in my vb.net windows application. From the little I know, may be wrong but I don't think I should use the mysql connection straight from vb.net as this application will be used on multiple computers and networks which I will not have access to, plus they will not have static IP addresses. So I would like to know the best way to go about using PHP as the direct connection to the database and therefore the best way to output the data using PHP (maybe json format?) and to then use that within the vb.net application to populate a datagridview.
Thanks for any help..
I have created this drag and drop application using Actionscript, and would like to send variables from here to a MySQL database. But before that, I intend to store the variables as session variables.
I'm not really sure on how to go about doing this and I haven't found anything much online that is relevant. Could someone show me how the PHP and Actionscript side code looks like?
Thank you very much in advance!
No-one here is going to write all that code for you.
The simple stages would be like this;
Have a PHP file for each service (maybe called "writeVariable" and another called "readVariable"). Decide on some way to pass information to and from them - maybe using JSON or XML, or just plaintext. The services would then write and read the data from the database as needed.
Then access those pages from flash through URLLoader and the protocol you set up.
I have spent the past three days researching this... but Im still stuck.
I have a service provider that offers me a REST api. I need to:
Get the data from his api
Assign the data to variables in php
Write the data to my localhost sql database.
All that's required is the API KEY which has been provided to me.
Please could someone explain to me what method I should use to call and store the data in php.
Writing to the Database and handling the data once in php format is not a problem.
Thanks in advance
Since you want to consume a webservice you would have to make HTTP request using PHP.
There is many ways to do that but the most used(IMHO) is cURL. cURL function would allow you to easily make HTTP request and consume data from the webservice.