back soft

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

PHP Create XML from mysql db, savexml() gives nothing

Vote count: 0 I am trying to create an xml file, but the $dom->savexml() gives nothing, and there is no error message so i don't know how to debug. Here's my php file: require_once 'logincredentials.php'; // Start XML file, create parent node $dom = new DOMDocument("1.0"); $node = $dom->createElement("markers"); $paode = $dom->appendChild($node); // Opens a coection to a MySQL server $co = new mysqli($hostname, $useame, $password, $dbname); if ($co->coect_error) { die($co->coect_error); exit(); ...

ادامه مطلب

EasyPHP Projects and DataBase in Dropbox

Vote count: 0 I am trying to set all my EasyPHP in Dropbox, to be able to work in 2 PCs, in the laptop and in my new one. The first is Win 7 and the second one is Win 10. I was working in Dropbox for several years in dropbox, but only in one computer. But Win 10 doesn't like my configuration: MySQL is not working, and PHP give me a popup with waing: "php startup: empty". Also, I have IoDB databases. What can I do?? Maybe try to use another server?? Also, Will be great to use the same database in...

ادامه مطلب

Visualize DataGridView From last inserted row

Vote count: 0 I have a DataGridView in C# coected with a SQL Database table. I simply want to visualize data from last inserted in the table. The association between dataGridView and Database are made through the visual object functions. For example if the table row are: Richard 1 Susan 2 Carl 3 I want to dispaly data in my DataGridView as: Carl 3 Susan 2 Richard 1 Thanks to all asked 51 secs agoAle Let's block ads!...

ادامه مطلب

How can we "view selected rows" (selecting from dropdown) in Jquery Datatable

Vote count: 0 I am facing a problem in jQuery Datatable, is that I have a dropdown and a datatable with pagination enabled. If I checked few rows from 1st and 2nd page So the Total number of Rows selected should be binded on Datatable. Is it possible or some other alteative concept is there? View All Layer View selected Layers $(".user-select").change(function () { var arrSelLayr = []; }) So what can we do to resolve this problem. It should bind say 5 rows from 2 pages of jquery datatable. asked...

ادامه مطلب

Regex Javascript How To Imitate Negative Lookbehind from PHP Regex

Vote count: 0 I have the following regex (? and my sample test messages. The trouble I am having is converting this to Javascript from PHP since Javascript does not support negative lookbehind. I would like to match for any hazcon 0 or hazcon0 but ignoring any instances of #hazcon0 and #hazcon 0. #hazcon0...

ادامه مطلب

VB.net Checking if database exists before connecting to it

Vote count: 0 I found the following query in order to find out if a database table was created already or not: if db_id('thedbName') is not null --code mine :) print 'db exists' else print 'nope' Now I am wanting to use that same query within my VB.net application. This is the code I currently have elsewhere that coects to the database (that I am wanting to see if its there before doing all this): Dim cn As SqlCoection = New SqlCoection("Data Source=DAVIDSDESKTOP;" & _ "Initial Catalog=thedbName...

ادامه مطلب

Passing scope data from a function to parent scope?

Vote count: 0 In my controller I have a $http call which retus a json string which I then want to pass to a directive to be added to a map. The string is being passed from the controller to the directive fine but not from from the $http function within the controller to the directive. wmm.controller('wapMapClr', ['$rootScope', '$scope', '$window', '$http', function ($rootScope, $scope, $window, $http) { $scope.geobj = {}; $scope.geobj.geoprop = "" // Search by postcode // create a blank object t...

ادامه مطلب

php execution timeout on every laravel request with database call

Vote count: 0 I have local development environment setup with xampp, and am with working laravel 5.2 and php5.6.3. Making a request to route without a database operation runs without any issues, but trying accessing the db with an eloquent model results in Maximum execution time of 60 seconds exceeded at different points in the execution of database operation. Trying the same db operation using vanilla php and PDO works without a hitch, phpMyadmin works ok. What could cause this sort of issue?. ...

ادامه مطلب

How to enable autocomplete in phpstorm for datatrax php-driver

Vote count: 0 Is it possible to activate autocomplete in PhpStorm for Cassandra Datatrax php-driver. Datatrax php-driver asked 41 secs agoIlario Engler Let's block ads!...

ادامه مطلب

Extract rows from table when columns is no empty in php

Vote count: 0 I need to select rows when field "beruf_1" is not zero. beruf_1 is type VARCHAR These four entries write me error. $sql = "SELECT * from members WHERE beruf_1 LIKE != '0' "; $sql = "SELECT * from members WHERE beruf_1 LIKE != 0 "; $sql = "SELECT * from members WHERE beruf_1 LIKE > 0 "; $sql = "SELECT * from members WHERE beruf_1 LIKE > 'a' "; Notice: Trying to get property of non-object in xxxxxxx.php on line 141 Another: $sql = "SELECT * from members WHERE beruf_1 LIKE '!= 0' "; R...

ادامه مطلب

how to display data from database in card ui using javascript or jquery

Vote count: -1 Hi Everyone I am newbie to web development so can you help me to solve below questions Questions to be solved 1) suggest me best UI design to implement in web as above in image. 2) And From the database,I need to display data as above image in html by using any one of the scripting language JavaScript and Jquery. if there any other scripting language that can be used to optimize performance please suggest me with a code Thanks in advance. edited 1 min agojcubic asked 4 mins agoRaj...

ادامه مطلب

session variable not updating after a new value has been set in the database

Vote count: 0 I'm having some troubles understanding how session variables actually work. I have an account management page where the user has access to his informations (e-mail, password, city...) and can update them. However when the user saves the modifications and reload the page the informations are not being updated, even though it is successfully modified in the database. To get the informations to update on the account management page he needs to log out and log back in. What can I do to...

ادامه مطلب

How to store data from html form in variable?

Vote count: 0 Basically there is a google like search bar, once they submit, I need to store it in a variable. There is more to the jQuery than below, but all it is is document.ready. The reason I need the data in a variable is because after that, I will use $.post and send it to my api. the jQuery: ("#form").submit( function(res) { var id = $(this).JSON.parse(data); //Other attempted ways of getting input. //$(this).data //$(this).data('button') //document.getElementById('id').value //$(this).g...

ادامه مطلب

Dynamic Pulling of Data from mySQL Database

Vote count: -2 I am working on a class assignment which requires me to dynamically make buttons dependent on database information. The array value [i,0] is what pulls the name value for each of these created buttons. My next step is to cause each of these buttons to pull from a different array location in the database, [i,1], and when clicked, set a text area to that text. I am having issues tying the array location to a button to repeatedly call this array location as I have a series of buttons...

ادامه مطلب

How to pass data on image click from RecycleAdapter to Fragment interface, which I used in MainActivity to show data

Vote count: 0 I am trying to archive a data from onClick method of RecycleAdapter class to Fragment Class and that fragement class have interface which I used in MainActivity to get that data. I create a method onButtonPressed() in Fragment class which I called in recycleadapter onclick method for get data. Here is my code 1) Main Activity class public class MainActivity extends AppCompatActivity implements Fragment_main.OnFragmentInteractionListener{ private Realm realm; private Results results...

ادامه مطلب

how fast is search in text document with 5000 lines if I want use it as database

Vote count: 0 how fast is lines search, if I want use text document as database, how fast this way to find certain line in 5000 lines for example asked 1 min agoL_Oni Let's block ads!...

ادامه مطلب

extract data.frame name and dependent variable name from nls model in R

Vote count: 0 Say I have I fit an nls model to some data, d, in R. #fake data x...

ادامه مطلب

Meteor accessing things from route (restivus)

Vote count: 0 Caot understand why it restrict me accessing Meteor.userId() from route with following error: Error: Meteor.userId can only be invoked in method calls. Use this.userId in publish functions. at AccountsServer.userId (packages/accounts-base/accounts_server.js:82:13) at Object.Meteor.userId (packages/accounts-base/accounts_common.js:223:19) at Object.get [as action] (server/main.js:15:28) at Route.share.Route.Route._callEndpoint (packages/nimble_restivus/lib/route.coffee:147:25) at pa...

ادامه مطلب

Is there a way to ban IP addresses from accessing my parse-server?

Vote count: 0 If a particular computer is making tons of accounts or flooding my server with other requests, could parse-server automatically check this behaviour and block the specified IP address? Built-in rate limiting would also be a nice alteative, although it doesn't really solve the problem if the person continues to spam. I am hosting on google app engine by the way. asked 3 mins agoAppreciateIt Let's block ads!...

ادامه مطلب

how do you extract data from nested json data in R

Vote count: 0 I need to be able to extract these fields from this json entry: sender: Hostname mem:used_p cpu: user_p load: load_5 // {"senderDateTimeStamp":"2016-04-07T00:00:00.0093","senderHost":"server1","senderAppcode":"test_infrastats_prod","senderUsecase":"system","destinationTopic":"test_serverstats_realtimedata_topic_prod","correlatedRecord":false,"needCorrelationCacheCleanup":false,"needCorrelation":false,"correlationAttributes":null,"correlationRecordCount":0,"correlateTimeWindowInMill...

ادامه مطلب