884 Topics

Member Avatar for
Member Avatar for Israel_2

I need help parsing json data to a specific format so I can put it on a line chart. More specifically a line graph using [highcharts](http://www.highcharts.com/demo/line-basic) This data comes from a query $data['graph']=$this->mymodal->graphmodal($id); foreach ($data['graph'] as $row) { //modify array.. } echo json_encode($data['graph']); The result this produces is the following …

Member Avatar for Israel_2
0
202
Member Avatar for gcardonav

I created a sample webservice that will ask the user for some information and return in JSON form all the information required. I have two issues here 1. I don't want to make it required that the user enter bot the new dates and renewal dates, I want to make …

Member Avatar for pritaeas
0
838
Member Avatar for phoenix254

I am new in programming languages.I was trying to learn web socket with javascript to this [site](http://socket.io/get-started/chat/), but i am not understanding something that why i need to use **Package.json**. I tried to google a lot, but can not find something useful. One more thing if i create Package.json then …

Member Avatar for cereal
0
186
Member Avatar for old_apache

I'm trying to convert this xml to json or array. first this is what i did: $response = simplexml_load_string($xml_test); and i got error: < not found, anyone can help me? HTTP/1.1 200 OK Date: Wed, 03 Jun 2015 10:19:38 GMT Server: Apache-Coyote/1.1 Pragma: no-cache Cache-Control: no-cache Expires: Thu, 01 Jan …

Member Avatar for bnmng
0
213
Member Avatar for philjen

Hi Im a newbie in asp.net, im a php programmer though, and i've been working on a pop up div with a search engine on it, in php i have no problem working with json but in asp it took me already two days to find a similar problem, yet …

Member Avatar for philjen
0
645
Member Avatar for Betterwebsites4u

Please help I am creating this contact form where everything is working fine but I am not getting attachment in the email, What am I doing wrong? Here is the code Here is the script I am using <script type="text/javascript" src="js/jquery-1.11.0.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#submit_btn").click(function() { //get input field …

Member Avatar for lps
0
638
Member Avatar for Trabelsi

Hello, I have a little problem , I am currently developing an application with PHP and MySQL , this application should show me more persons, each person must have one or more services and each service can be inversely associated with several people, for this I have 2 tables, one …

Member Avatar for Trabelsi
0
404
Member Avatar for Lindsey_2

I'm relatively new to mediawiki and has just started last week. Anyone can point me to the correct direction of getting the top article (based on number of likes) in mediawiki? I've already implemented the fblikebutton extension on every article and managed to retrieve the number of likes for each …

0
144
Member Avatar for ramsiva

I have DB s_id sn_id sec_id 1 1 1,2,3 Based on sn_id i want to display sec_id and sec_name. I want to convert into json array format like this [{"sec_id":"1","sec_name":"A"}, {"sec_id":"2","sec_name":"B"},{"sec_id":"3","sec_name":"C"}] Any body helo to get json array format

Member Avatar for pritaeas
0
74
Member Avatar for blueguy777

how to store json output into seperate PHP variables? {"msg":"success","msg_text":{"9912345678":"N"}}

Member Avatar for diafol
0
275
Member Avatar for OsaMasw

Hello guys , am new to Android Development, I've created many test apps for learning, using webview and lists and creating multiple activities, I have an application that get URL with JSON data contain url with streaming video and when click on button open VLC with URL provided. JSon FILE …

Member Avatar for peter_budo
0
4K
Member Avatar for OsaMasw

hello guys, am very new to android development, ans am trying to do my best to learn it,I have json output created from one of my PHP projects here is my output [ { "id": "1", "name": "BEiN HD 1", "link": "http:\/\/www.mysite.com\/tv4.ogg", "image": "http:\/\/www.mysite.com\/images\/jsc8.png" }, { "id": "2", "name": "BEiN …

Member Avatar for peter_budo
0
419
Member Avatar for methuselah90

Twitter Typeahead only seems works with elements called when the page loads (and not the dynamically created stuff made by methods like addWaypoint). How would I resolve this? Please find my code below: $(document).ready(function () { // Add waypoints $('#add-waypoint-button').click(function () { var n = $('#waypoints input').length; addWaypoint(n); }); // …

Member Avatar for diafol
0
1K
Member Avatar for rpv_sen

Hi I am trying to read the datas from mysql using php in json. but i am not getting my expected output. Please help me to fix the issue. **code** <?php include('../config.php'); //mysql_query("SET NAMES 'utf8'"); $tdate = date('d-m-Y'); $url = 'url'; $sql = "SELECT * FROM pimage where date<='$tdate' and …

Member Avatar for rpv_sen
0
3K
Member Avatar for rpv_sen

Hi I have written a json file using php. But i am unable to display the css style. can any please help me to fix the issue. **my json code** <?php require_once('config.php'); function jde_date_conv($jde_date) { $ct = substr($jde_date,0,1); $yr = substr($jde_date,1,2); $dy = substr($jde_date,3,3); if($ct == 0)$yr_pfx=19; if($ct == 1)$yr_pfx=20; …

Member Avatar for rpv_sen
0
525
Member Avatar for Raadha

my php code is working and is giving an output.. but the pie chart (html part) is not working.. can anyone help me solve this?? <?php $con=mysqli_connect("localhost","root","","test"); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } if(isset($_POST['pie1'])) { $to= $_POST['to']; $from= $_POST['from']; $query = mysqli_query($con,"SELECT COUNT(mrd),del …

Member Avatar for Raadha
0
283
Member Avatar for Kalaivani Nair

Below is my database structure: PostUUID subid pricing Name Poscode abc1 1 100 userA 56000 abc2 2 100 userA 56000 abc3 1 100 userB 56000 abc4 2 100 userB 56000 abc5 1 100 userC 56000 abc6 2 100 userC 56000 Now I want to perform search on this table called …

Member Avatar for Kalaivani Nair
0
342
Member Avatar for Vivek_13

{"courseId":"116","question":"asdasd","ansIndex":"1","ans0":"sadsa","ans1":"dsad","ans2":"sadasd","ans3":"asdasd"} This is my Json String......How to Convert In to Xml File

Member Avatar for diafol
0
314
Member Avatar for blueguy777

my json decode script throwing error i.e. Error : DATA FETCH My code: <?php $api_url = '{"msg":"SUCCESS","msg_text":"DATA FETCH","data":[{"sn":1,"mob_no":"9602858989","date":"06-May-2015","time":"12:02:33 PM"},{"sn":2,"mob_no":"7795055128","date":"06-May-2015","time":"12:29:44 PM"}]}'; $output = file_get_contents($api_url); if($output=="") { echo "No output received"; } else { $arr_output = json_decode($output, true); if(isset($arr_output['msg'])) { $msg = $arr_output['msg']; $msg_text = $arr_output['msg_text']; if($msg == "success") { if(isset($arr_output['data'])) { …

Member Avatar for blueguy777
0
318
Member Avatar for chichi9

hi, so im trying to get the course names and teachers printed from the JSON file and having trouble linking it to the drop down please help :) html code <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Course Info</title> </head> <body> <h1>Course Information Search</h1> <form action="" method="GET"> <select name="course" id="course"> …

Member Avatar for mrsixcount
0
197
Member Avatar for dosek125

Hello all, I am wondering if someone could comment on the quality of my code. I am working on a project and would like to know whether what I am writing is 'good enough'. The following code is an extract from the app: <?php //ajax_handler.php //Main configuration file which includes …

Member Avatar for lorenzoDAlipio
0
272
Member Avatar for amaya Gimhani

model controller function viewdashboard(){ $this->load->model('AgentPerformance/agentPerformance_model'); $value = $this->agentPerformance_model->dashboard(); //echo $value; return $value; view <html> <head> <script src="http://code.highcharts.com/highcharts.js"></script> <script src="http://code.highcharts.com/modules/exporting.js"></script> <script> $(function () { $('#container').highcharts({ chart: { plotBackgroundColor: null, plotBorderWidth: null, plotShadow: false }, title: { //alert('ttttt'); text: 'Browser market shares at a specific website, 2014' }, tooltip: { pointFormat: '{series.name}: …

0
169
Member Avatar for berserk

I have found several different methods for doing this online but for some reason i just cant get any of them to work for me, it may be they way im calling them or something but it also might involve my lack of expereince with JS but regardless I have …

Member Avatar for AleMonteiro
0
5K
Member Avatar for Bchandaria

angular .module('abc') .factory('dashboard', dashboard); function dashboard($http, notifier) { var service = { getAllMasterJobsNames: getAllMasterJobsNames }; return service; function getAllMasterJobsNames(request) { return $http.post('/JSONServices/JSONCampusManagementService.svc/GetAllMasterJobsNames', request).then( function (response) { if (angular.isUndefined(response.data) || (angular.isDefined(response.data.IsException) && response.data .IsException)) { notifier.error('Error fetching the Active Events : ' + JSON.stringify(response)); } return response; }, function (response) { …

0
197
Member Avatar for jchimz

Hi guys I am attempting to get data entered in an HTML form through PHP then converting this data into a JSON object which will be saved on a server and retrieved to the form incase someone wants to edit entries. Please help and advice on an alternative if you …

Member Avatar for jchimz
0
405
Member Avatar for Prince_9

Please how can I turn curl -X GET -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" "http://search.yumpu.com/2.0/search.json?q=s.moser&in=author" to php. Thanks.

Member Avatar for Prince_9
0
965
Member Avatar for rouse

I the objective of the code that I attached this note is to Collect data in a form. Post to a PHP file where the collected information is turned into a JSON Write the JSON information to a file Return the JSON and print it to the an ID in …

Member Avatar for rouse
0
579
Member Avatar for Prince_9

I'm trying to make a curl through php below is the command line : curl -i -H "Accept: application/json" -d "{"username": "divmesselibrary", "password": "677Sure1@"}" https://openlibrary.org/account/login Please I need your help

Member Avatar for broj1
0
337
Member Avatar for Shalu.23

how to dynamically insert keys into an existing python dictionary, input is the .json file and the output in a .csv file. this is the input in the .json file [{"FIRSTNAME":"barc","EMAIL":"jahg@jh.com","ADDRESS":"gyuyj"}, {"FIRSTNAME":"rth","EMAIL":"tht@thuyj.com","ADDRESS":"ytju"}, {"FIRSTNAME":"trhy","EMAIL":"klo@pyu.com","ADDRESS":"trght"}, {"FIRSTNAME":"ghy","EMAIL":"ytj@uki.com","ADDRESS":"ukyk"}] output is required as .csv file(in each row its specified columns should be added) "FIRSTNAME":"barc","rth","trhy","ghy" "EMAIL":"jahg@jh.com","tht@thuyj.com","klo@pyu.com","ytj@uki.com" …

Member Avatar for vegaseat
0
257
Member Avatar for Prince_9

I am able to view content displayed from the API but i'm not able to extract the various contents. my codes are below: function parseInfo($barcode) { $url = "https://archive.org/advancedsearch.php?q=$barcode+AND+licenseurl:[http://creativecommons.org/a+TO+http://creativecommons.org/z]&fl[]=identifier,title,mediatype,collection&rows=15&output=json&callback=IAE.search_hits"; $contents = file_get_contents($url); // $json = json_decode($contents, true); return $contents; } echo $array = parseInfo($barcode); //var_dump($json); for ($i = 0; $i …

Member Avatar for Prince_9
0
227
Member Avatar for Prince_9

I've used different methods and found it difficult to integrate mashape for a dictionary.. My code is below: require_once 'unirest-php/src/Unirest.php'; // These code snippets use an open-source library. $response = Unirest\Request::get("https://montanaflynn-dictionary.p.mashape.com/define?word=irony", array( "X-Mashape-Key" => "T2rwS1jyBSmshKoZB5Un2kfpvgtRp1hUS9pjsnHvPoGNHIMpda", "Accept" => "application/json" ) ); What am I not getting right Regards

Member Avatar for Prince_9
0
306
Member Avatar for Prince_9

I'm not able to get the content of this array, please can someone help? Where Am I getting it wrong? Below is the code $barcode = "9780980200447"; function parseInfo($barcode) { $url = "http://www.librarything.com/api_getdata.php?userid=timspalding&showstructure=1&max=10&showReviews=1&showTags=1&reviewsOnly=1&name=Jesus+is+Lord&&apikey=b27cb381baddff9c49b9dd27d9d96651&responseType=json"; $contents = file_get_contents($url); $json = json_decode($contents, true); return $json; } $array = (parseInfo($barcode)); //print_r($array); foreach ($array as …

Member Avatar for broj1
0
357
Member Avatar for RudyM

I am trying to submit a form and get a result from an AJAX call. However, the error block is triggered when submitting the form. If I change the <form> to a <div> and change the $("form#main_frm").submit(...) to $("#main_frm").click(...), it works. What am I doing wrong with form? Thanks in …

Member Avatar for DaveAmour
0
227
Member Avatar for singhsd2005

why this code give error like "Warning: json_decode() expects parameter 1 to be string, array given in <b>E:\wamp\www\datefun\show_cart_update.php</b> on line". Please help me. I am new in php and json <html> <head> <title>Untitled Document</title> <script src="js/jquery-1.9.1.min.js"></script> </head> <body> <script> function update_cart_detail() { var aData = new Array(); aData[0]={ "session_id":"64qu9ng2o8o996s21bjt9321h1", "order_id":"26", …

Member Avatar for diafol
0
454
Member Avatar for rubeea.jaffari

Hello everyone, I am trying to connect my android application to MYSQL database. I have used the following: MYSQL already created database test (accessed via xampp using localhost/phpmyadmin) Created a table named as student in the database test consisting of Name and Roll No columns and 2 records. A user …

Member Avatar for hericles
0
955
Member Avatar for fedaa91

Hello everyone Now my problem is how to make oracle take json string in oracle procedure , so i know that only oracle 12c specifically version 102 supports json data , so i want to know how to get a json string from web application rather than using XML data …

Member Avatar for fedaa91
0
147
Member Avatar for Sudhakar_1

The Timer displayed is 1 hr (HH:MM:SS) in decrement order. I have to display a pop out when 50 minutes complete after that remaining 10 minutes one pop up should display saying 10 minutes with 0 sec. After that for every 2 minutes the pop up appear showing 2 minutes …

0
70
Member Avatar for Sudhakar_1

<head> <!-- //In header section of the page add below url code: --> <!-- Sesion time out and session expiry url starts here --> <s:url id="sessionExpirePopUp" action="sessionOutCiscoGSS" namespace=""> </s:url> <s:set name='sessionExpirePopUpNew' value='#sessionExpirePopUp.replace("&amp;","&")' /> <!-- Sesion time out and session expiry url starts here --> <script type="text/javascript" language="javascript" src="<%=request.getContextPath() %>/jsp/js/jquery.js"></script> <script …

Member Avatar for stultuske
0
209
Member Avatar for lokmani

Hello, my web api is not working on chrome, but working on IE a open appears at bottom contains .json files . i have all the data on it. can you check my code whats the error? public class DataController : ApiController { [Route("dataapi/category")] [HttpGet] public IEnumerable<vendor_category> Category() { return …

Member Avatar for djjeavons
0
685
Member Avatar for Kai_Chang

Well this is my basic code for my RPG, can I have help improving it? import cmd import json from rpg_data import * class RPG(cmd.Cmd): def do_n(self, line): try: Me.location = Me.location.exits["north"] except: print("You can't go north") def do_s(self, line): try: Me.location = Me.location.exits["south"] except: print("You can't go south") def …

Member Avatar for vegaseat
0
278
Member Avatar for Priti_P

Hello, Am new @angularjs. I am using progressbar in angular bootstarp. but for my requirement its little bit tricky. I am using progressbar for DB migrations. OnClick of button my migration process starts and bar should show progress. What I was thinking to do is : onclick call function which …

Member Avatar for Priti_P
0
231
Member Avatar for SimonIoa

I have created an Open Graph story.I am thinking of using the PHP SDK code provided by Facebook here is the code $response = $facebook->api( 'me/objects/rovespier:art', 'POST', array( 'og:url' => http://samples.ogp.me/407704082730386, 'og:title' => Sample Art, 'og:type' => rovespier:art, 'og:image' => https://fbstatic-a.akamaihd.net/images/devsite/attachment_blank.png, 'og:description' => , 'fb:app_id' => 34954712323 I dont know …

0
153
Member Avatar for osagie.odigie.148

Good day all ! i have a multi-dimensional array. the array was carefully built from my xml structure. here's it : array (size=1) 'Articles' => array (size=4) '@About' => string 'programming' (length=11) '@compile' => string 'pro' (length=3) 'Article' => array (size=3) 0 => array (size=6) ... 1 => array (size=6) …

Member Avatar for diafol
0
362
Member Avatar for Olivier_1

Hi, i'm trying to implement a flot.js graph using a custom php array as data. Here is what i've done : <?php foreach ( $dynamic_prices as $limit => $price ): $coordonnees[] = array($limit,$price); endforeach; ?> <?php echo json_encode(($coordonnees), JSON_NUMERIC_CHECK); ?> This code outputs : [[5,9],[6,8]] is it the right format …

Member Avatar for Olivier_1
0
261
Member Avatar for momal

I have a localhost server running on port 4000 which listens to requests sent to it and executes commands and returns output to client in a json format. I'm actually trying to run docker commands for the gcc compiler image. I have a code in PHP that is working just …

0
168
Member Avatar for anastasia_1

Hello everyone, i am creating a website where i need to store some data from the signup form in some arrays(i need them for the login form, to check if the specific person has already an account). I need to store only the data from a few people as the …

0
90
Member Avatar for widy_1

so i have the following data in all-names.json { "copyright": "Copyright (c) 2014 The New York Times Company. All Rights Reserved.", "num_results": 44, "results": [ { "display_name": "Print & E-Book Fiction", "list_name": "Combined Print and E-Book Fiction", "list_name_encoded": "combined-print-and-e-book-fiction", "newest_published_date": "2014-12-14", "oldest_published_date": "2011-02-13", "updated": "WEEKLY" }, { "display_name": "Print & …

0
65
Member Avatar for amvx86

Hey what's up everyone? I'm about 3 days into hitting an extreme amount of brick walls and I'm about punch drunk. Currently I've spent 4 hours on this alone and I'm still not getting anywhere. Does anyone have some code samples that I might be able to use to put …

0
138
Member Avatar for Benjamin_4

i want to know how i can get a json response from my node.js server and display the response on my web page ` var request = require("request"), username = req.body.username, password = req.body.password, url = "https://api.ecoachsolutions.com/main.php?ecoachsignin=1&server=remote&user="+username+"&pass="+password; console.log("url is "+url); request.get( { url : url }, function (error, response, body) …

0
122
Member Avatar for ben.juarez.773

Hello, I'm working on a small project to acquire information from regulations.gov using their API. It's fairly simple (codewise) what I'm trying to do. However, I get stuck with a "HTTP error 403: Forbidden". It means I'm connecting, but something seems to be the matter. I've been in contact with …

Member Avatar for richieking
0
528

The End.