back soft

مطالب مرتبط با «accessing data from json» در back soft | نویسنده: استخدام کار

How do I save data from a checkbox array into database

Vote count: 0 I am trying to save the data that is sent from the checklist to a database but i'm stuck. I was thinking of using a foreach but I don't know what to put in it. I though of putting it as: foreach($_POST['id'] as $add){ insert into database... } but i can't figure out how to do this correctly...

ادامه مطلب

Reusing jQuery HTML Snippet to populate data from JSON Array

Vote count: 0 I am trying to reuse an HTML snippet to fill an array of JSON data. The following piece of HTML is somewhere hidden (eg. css: #empty { display: none; } in the page. This block basically defines the HTML structure of LI tags. NAME TOTAL Now, how can I fill up the image src, href, anchor text and TOTAL value in jQuery? asked 35 secs agoBimal Poudel This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read t...

ادامه مطلب

How to get a wstring in Chinese from rapidjson::Document?

Vote count: 0 I'm a student, and developing a PC-Client with cpp. I do not know how to deal with which rapidjson with encoding Unicode. I always get a messy code. I am a jackeroo about cpp, how can i get the correct result? I will appreciate it much! asked 56 secs ago毕晓峰 This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب

How to covert php data into json format?

Vote count: 0 Here i am fetching data using php code.But i want the same code to be convert into json format.I am not getting the way to do it. I have tried it in this way. my code while ($rows = mysql_fetch_array($filter)) { $result['name'] = $rows['name']; $result['id'] = $rows['id']; } $res = json_encode($result); print_r($res); getting result {"name":["sradha","nicky","demo","testing"],"id":["1","2","3","4"]} Here i want it in this below json format [{id:1, name:'sradha'}, {id:2, name:'nicky...

ادامه مطلب

Update and Refresh DataGridView with BindingSource from BindingList

Vote count: 0 I have read from a excel sheet and wrote this for a BindingList, in Form_Load this is set to a DataSource as BindingSource: bd = new BindingSource(); //instance of BindingSource bd.DataSource = ExcelOPS.LerExcel(); //LerExcel() method retu a BindingList gvFiltro.DataSource = bd; //set a DataGridView named gvFiltro DataSource property bindNav.BindingSource = bd; //set a BindingNavigator source This work fine! I intent to create a combobox as filter for this DataGridView gvFiltro, so...

ادامه مطلب

In firebase is it possible to get data from a node in order of when the row was added?

Vote count: 0 In firebase is it possible to get data from a node in order of when the row was added? I have a list of profiles that was added to my profiles node and I need to get the in order of when they was added to the database. Is this possible. Im using angular2, typescript and firebase for my app. I've been reading this: https://www.firebase.com/docs/web/guide/retrieving-data.html#section-ordered-data but not sure how if its possible to do what I need. asked 29 secs agoAngularM This entry...

ادامه مطلب

Best practice for Service Account accessing Cloud Services from iOS app without user login?

Vote count: 0 Hi my company needs to create an iOS app that sends secure data to our own cloud services, such as our Google Drive or some REST web services. What is the best practice that does not require user login? I came upon some technical articles mentioning about client certificate for authentication of the service account. Or using 2 legged OAuth 2.0 with a service account. Although I am not exactly sure how to implement them. So just wondering perhaps there are some best practices that I...

ادامه مطلب

How to get blob data in json or xml format?

Vote count: 0 I have stored xml file in mysql BLOB datatype,so now i want to get that data in xml or json format and need to display. i tried like this,but getting binary values $mqs = db_select('multiple','mq') ->fields('mq',array('data')) ->condition('tokenid', '1') ->execute(); foreach ($mqs as $row) { $test = base64_encode($row->surveyid); //here junk binary data displaying drupal_set_message("data ::".$test); $xml = simplexml_load_string($test); $json = json_encode($xml); $array = json_deco...

ادامه مطلب

Save and load spritekit images data from/to disk using databse in swift

Vote count: 0 I am developing SpriteKit universal iOS application that will contain many spritekit images. I was wondering if there are better methods for working with large amount of data images in iOS apps from what's available as default from Apple (i.e. texture atlases or image assets). Some resources point out that working with a database, like SQL, to save and load images data to/from a disk, improves the overall app performance in terms of memory resources. What is the really best way to ...

ادامه مطلب

C/C++ program to receive data/files from FTP server IP

Vote count: -3 I am looking for c/c++ program which could receive data/files from FTP server. I am quite new to network programming asked 2 mins agoTush This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب

Error getting value from 'ServerVersion' when trying to JsonConvert.SerializeObject

Vote count: 0 I have a very basic code using Entity Framework to get a model in my MVC C# .NET Controller. var myModel = myContext.MyData .Where(m => m.ID == 1) .FirstOrDefault(); string json = Newtonsoft.Json.JsonConvert.SerializeObject(myModel); When I try to run this code, I get an error: Error getting value from 'ServerVersion' on 'System.Data.SqlClient. ... If I press 'Continue', the view says: [InvalidOperationException: Invalid operation. The coection is closed.] Whats wrong?? What does S...

ادامه مطلب

exporting schema and data from one DB to other in SQL Server 2012

Vote count: 0 i want to export data and schema from live Database to my local database, i tried "export data" option while right clicking on live db but it only exports data but not constraints on columns. kindly help me out? asked 1 min agoNoman Ahmad This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب

how to write a javascript function to capture data from a table?

Vote count: 0 I have a simple table, however my table has php includes in the td. These include statements are dropdowns that create another table of data when clicked How can I write a javascript function to capture that data. Table1 asked 4 mins agoAidan G 73 This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب