I have a simple question about the database structure and connection to my iOS App.
Is there any solution to get datas from my databse using Swift without PHP output? I want a PHP script which connects to the database and echo the result. The app should load the datas directly from the database like PHP (mysqli).
It is really important for me to protect the datas in the database! Nobody should see the datas when he opens a URL in the browser of my server.
Related
I would like to create a website that shows analysis of my Odb database. Therefore I need to extract data from orientdb, in a "live way" i.e connect and open the database via php, query my database and stock into variables the results. I found one API written in php that is supposed to stream data from Odb but it's not working.
Do you know if there is any way to do like the php command mysqli (that connect to mysql and allows you to query the database) but with orientDb ??
Thank you
I hope will be of help, to these two links:
OrientDB-PHP
Graph-in-php-through-OrientDB
the guides are shown to connect to OrientDB via php.
I would like your help on these. Does anyone know how to get data from arduino to a database? Specifically mysql or any other database that we can use.
You need a backend on your server. The Arduino calls a php script with POST or GET Parameters and the php script writes the content to your database.
Add some HTTP Basic Auth and the job is done,
I need to save the information that I get from a json, the result did a webserver with php MySql connection, and save me the information in an internal db, so I do not have to download every time the json, what can I use to save information from the json directly to the database?
Create your own SQLite data base in the android device and the table should like the web data base.If your web data base is updated then your android device need to be updated.
Just store the data in your app's SQLite database:
http://developer.android.com/guide/topics/data/data-storage.html#db
I am trying to develop an android application. In the application the user can search some data from the database that is on the server side. For that, I use a php script that is on the server side along with mysql database. I give it a call from the android app and the php code connects with the database and returns a json result which I decode and use it as I want.
My question is this. Can this support multiple users at the same time? For example 2 different users use at the same time the search function for retrieving data from the database. I know that the database itself can handle this kind of requests, but what about the php service?
Here is an example of the php code:
<?php
mysql_connect("host","username","password");
mysql_select_db("Deal");
$sql=mysql_query("select * from CITY where CITY_NAME like 'A%'");
while($row=mysql_fetch_assoc($sql))
$output[]=$row;
print(json_encode($output));
mysql_close();
?>
PHP script is being launched by web-server environment. It's hard to imagine there exists web-server that doesn't support multi-threading at present. So, don't worry. The answer is positive.
This is more a two part question on the one subject.
I'm following this tutorial in an attempt to connect to mysql database through android (currently pc server):
http://www.helloandroid.com/tutorials/connecting-mysql-database
The connection works fine, the app can download all the data using JSON, and as far as I can tell everything is in order.
There is a PHP script that queries the database using the variable 'year', which will cause an error in a browser:
Undefined index 'year'
The android app still works fine however (collecting data using JSON); but by using the statement:
if (isset .....
{ // Query }
The php errors disappear in the browser and unfortunately JSON stops working also in Android.
The way I'm seeing this problem is the program using a defined / set index correctly, then not working if it's being asked to check if it's set. Strange, but I'm probably missing something?
The other part is that I intended to use the same BasicNameValuePair with the $_REQUEST array for username & password ( currently causing some problems, but this may have to do with the other part). Is this a security risk, or is there nothing really different about using this method to pass the data along?
Thanks