Vote count: 0 I am ruing the following queries on my SQL databases. What I want to do next is to remove all the users from $result_users whose user_ID is also a receiverID in the $result_sender array. To do so I have created the following code, however I am not sure if my approach is correct. I have found online that what should be done is unset($array[$key]), however all the examples I found were normal arrays, and not obtained from SQL databases, hence I'm not sure how to proceed in this situa...
ادامه مطلبVote count: 0 So here's a scene, i have converted excel file into pdf. uploaded in my website. Now i want to store the DATA of pdf file into database. I need to read the data and store the data into database. Say, in my excel file, i have a column named Student Name, converted this file into pdf. So this header will stored as a Column in Database.. looked foe this problem on google. FileStream will do somewhat but not the all. P.S. I need to store pdf's Data. not pdf file. Database : Sql Server ...
ادامه مطلبVote count: 0 I have database with EmpNo(Int) and EmpImage(Image) columns. I am using HttpHandler to display the Images. I am storing Images both in database and folder. Now I want to change the names of Images in folder as names of EmpNo whose I didn't change while uploading. So need to fetch the Images names from database to compare them with the Image names in the folder and rename them. How can i fetch or extract the image names from the binary data that i get from database using generic han...
ادامه مطلبVote count: -2 EXAMPLE TABLE : location column : u202acity I want to retrieve the most repeated city from the city column using python and sqllite asked 48 secs agovitali Let's block ads!...
ادامه مطلبVote count: 0 Sometimes we receive input data of varying structure, for example response from online API may include some information but other not, some details are stored in complex nested arrays etc. I like to parse this data before usage, this way I don't have to use isset() over and over later on, ex.: $input; // source $correct_data = arra(); // verified data $correct_data["option-1"] = (isset($input["option-1"]) ? $input["option-1"] : ""); $correct_data["option-2"] = (isset($input["option...
ادامه مطلبVote count: 0 I want to get image id from sql database and put it in imageView through RecyclerViewAdapter . Unfortunately I have got no luck until now. -once I tried to put the ids in an array and getting number of array from database and calling the related array, but app force closed. -another time I tried to get the id from database but again it didn't work and app force closed. Who knows what is the correct way? thanks in advance. asked 1 min agomohamad Let's block ads!...
ادامه مطلبVote count: 0 I have 2 tables, shows and show_photo shows structure: show_photo structure: What i want to do is update show_photo.modified column with show.yearThis is what i tried but nothing gets updated. UPDATE show_photo t2 JOIN shows t1 ON t1.id = t2.show_id SET t2.modified = t1.year; asked 44 secs agopedja Let's block ads!...
ادامه مطلبVote count: 0 I want to share one sqlite db from headless and main app on Blackberry 10 OS. On the main app, I setup the db like this QString dataFolder = QDir::homePath(); QString newFileName = dataFolder + "/myapp.db"; QFile newFile(newFileName); if (!newFile.exists()) { // If the file is not already in the data folder, we copy // it from the assets folder (read-only) to the data folder // (read-write) QString appFolder(QDir::homePath()); appFolder.chop(4); QString originalFileName = appFolder...
ادامه مطلبVote count: 0 I have a test suite which works against a dedicated copy of the real database. In genereal I try to avoid accessing the DB when doing unit testing especially because unit tests should run fast (I don't care so much if it tests more than one class/method because my tests are more of functional tests). However I have a code that creates a complex object by filling it from the database and it would be a lot of work do create one "manually" from code or mocking one to bring it to a val...
ادامه مطلبVote count: 0 i can send data to mysql table and it is working good. now i want to get that data. i tried this code but it doesn't show any data from mysql table. can anyone help? maybe there is a different way? thank you PHP code: Controller: "use strict"; var app = angular.module('dataSystem',[]); app.controller('customerCardsCtrl',function($scope,$route,$location,$http){ $http({method:'GET', url:'api/get-allCustomers.php'}) .then(function(response) { $scope.customers = response.data; }) // Th...
ادامه مطلبVote count: 0 I have written a delete query in applicationDidEnterBackground Appdelegate METHOD. But when i stop the simulator it does not delete the database table. I want to delete the database tables when the app enters in the background or when the app terminates. Here is my applicationDidEnterBackground METHOD for delete table query. - (void)applicationDidEnterBackground:(UIApplication *)application { sqlite3 *database; NSArray * dirPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDire...
ادامه مطلبVote count: 0 I have created a Database-First model in EF6, and using existing database to generate the model and classes, now I need to override some required constraints in the database (in other words, some required columns are filled by triggers, so I do not need to send these columns values from the code). How can I achieve that? I tried alterfing OnModelCreateing() method in myDbContext but I believe because I am using "Database-first" approach this method is not called. asked 50 secs agoM...
ادامه مطلبVote count: 0 I have an ec2 instance ruing a djngo application, and for the database i've an AWS-RDS postgresql. So how can I coect my database to the django application asked 1 min agoNijo Let's block ads!...
ادامه مطلبVote count: 0 hi guys I am new in android programming to be honest I dont know where to start, I had this project, a capstone project where I will create a Library application ruing in android but i dont know how to make the sqlite or its database available online. Please do help. thanks ^^ asked 1 min agoearl Let's block ads!...
ادامه مطلبVote count: 0 Master Details Template When click on Master[list] it will navigate to detail page with table data, Suppose four column are there & In last column "Add" Button is there, * Now what I want is, on click that "Add" button that row data will bind direct in cart view * Cart view is on Master page with icon asked 1 min agomkraj Let's block ads!...
ادامه مطلبVote count: 0 I've been having trouble with reading data in from a text file to a 2D array. I am not too sure what the issue with the out of bounds exception is because I thought I initialized it correctly but I am not sure. Here is my code. String [][] f_team = new String [20][6]; //20 and 6 int cnt = 0; int cnt2 = 0; String line = ""; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); loadData(); } public void loadData() { try { BufferedReader br...
ادامه مطلبVote count: 0 I have rails model which i created with rails g resource Post title:string body:text I wan't to create react component and render my react component on Posts/index.html.erb. How i can do that? I use react-rails gem already asked 2 mins agoCihan Zengin Let's block ads!...
ادامه مطلبVote count: 0 I have Mobile App which updates MYSQL database. There are multiple users using this app. Our goal is to track changes made by these users and display it on a webpage. I want to make a webpage in php where I can see stats. So my question is how to detect changes in database (which are made through App) and display the 'Stats' of it on Webpage with the help of php? Thanks asked 1 min agoDarshan Suryawanshi Let's block ads!...
ادامه مطلبVote count: 0 I am developing a plugin that integrates with an exteal CRM and enables automatic page generation from database records. I have an issue while figuring out the translation scheme for this plugin. This is my current flow: Save values from an exteal XML to local DB Get values from Database Create new page for each seperate array object and display these values on the front-end. Lets say I want to display the estate's type of this object. I would use this code:{{ realEstate.type|raw }...
ادامه مطلبVote count: -1 I am sending file bytestream data as a multipart formdata to 'fileUpload' webservice (which is written in Java) using curl in PHP code. But i want to know is it possible any way to check how much multipart data send to webservice. Thanks in advance asked 3 mins agoYogiDev Let's block ads!...
ادامه مطلب