Posts by jose • 5 points
6 posts
-
0
votes1
answer640
viewsQ: format json return with javascript
I have the following code function functionCLick(name) { $.getJSON('livros.json', function(data){ $.each(data, function(i, item){ if(item.name == name){…
-
0
votes4
answers102
viewsA: Problems with click jquery
full code. I couldn’t put it in jsfiddle because I couldn’t put my json file <!DOCTYPE html> <html lang="pt"> <head> <title>json read</title> <meta…
-
0
votes4
answers102
viewsQ: Problems with click jquery
I have the following code: <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript"> $.getJSON('livros.json', function(data) { $.each(data,…
-
-1
votes3
answers67
viewsA: Problem with select php mysql
implementation of selectFiles, getResult and setResult methods selectFiles method public function selectFiles($sql){ $query = $this->conecta()->query($sql); foreach($query as $row){…
-
-2
votes3
answers67
viewsQ: Problem with select php mysql
I’m with a problem I’ve never seen in php, I’ll try to pass an example to make it easier to understand. I have a table arquivos in this table I have 2 columns and they are the id do arquivo and the…
-
0
votes1
answer578
viewsQ: search for data in a python json
I have the following code with open('states.json') as f: data = json.load(f) for state in data["jquery"]: if(argumentos[2] == state['version']): print(state['name'], state['version'] + "existe")…