Questions tagged as 'json'

1
answer

Protect a php file that shows json

I have my PHP file: <?php mysql_connect('hostejemplo.com','usuario','contraseña') or die('no se puede conectar'); mysql_select_db('basededatos'); $sql="SELECT * FROM tabla"; $resultado=mysql_query($sql); while($row = mysql_fetch_assoc($res...
asked by 20.12.2016 / 19:56
1
answer

Create backup files by time in Javascript

I have a JSON file in which I want to create a series of backups in a period of 5 minutes, at this moment, I have a program running with NodeJS that reads and writes a file defined by: let points = JSON.parse(fs.readFileSync('./points.json', '...
asked by 21.12.2016 / 12:35
1
answer

Send data from server to AZURE using JSON

I have files php what they do is insert, show, delete data through json, but I have them mounted on another server, it worked when I used phpmyadmin but I changed to azure and I do not know how You have to perform to do thes...
asked by 20.12.2016 / 16:58
2
answers

How to insert data from a json in a mysql table with phalcon?

I am currently working with the php phalcon framework and I have a problem when saving information to the database with json, make an ajax that loads me some inputs depending on the code of a team <script type="text/javascript"> $("#c...
asked by 09.12.2016 / 18:59
1
answer

Does not return JSON and shows error only to me

Very good, I have a code that the data of a form sends in a JSON by means of ajax with the post method to an external server, the external server is already doing what it has to do and it returns me to my other JSON The problem is that this a...
asked by 14.11.2016 / 14:35
1
answer

DRF The submitted data was not a file. Check the encoding type on the form - ImageField

I have the following model User: class User(AbstractBaseUser, PermissionsMixin): #... other attributes photo = models.ImageField(upload_to='avatars', blank=True) The basic serialization that I made of this model is: class UserSerial...
asked by 29.10.2016 / 02:12
1
answer

How to launch another activity by clicking on cardview?

I have a Recyclerview with Cardview s that show an image and a short description that is obtained through a JSON (with volley ), what I want is that, when I click on an item from the recycler all the information is ope...
asked by 08.11.2016 / 06:06
1
answer

send data using JsonArrayRequest using POST in android Volley

I am new to that in the use of JsonArrayRequest or JsonObjectRequest , using the library Android Volley . I'm doing an Android login when I try to send the data through a post that does not get it from the web service, but I do...
asked by 18.10.2016 / 22:13
1
answer

How do I get a data with condition in json? [closed]

Good!, Several time ago I am looking for a solution to my problem, I will give you an example: I have the following JSON file: { "datos": [ { "user_r": "22543341", "user_n": "15678798" }, {...
asked by 24.10.2016 / 23:47
1
answer

Android App with Retrofit consuming of api does not show the list

Well, the fact is that I just want to show the name of the countries in a list, but I do not know how to get the name only: This is the main class: listView = (ListView) findViewById(R.id.list_view); textView = (TextView) findViewB...
asked by 27.11.2016 / 13:22