Posts

php - Populate table data from databse table on selecting a particuar item from drop down list? -

i want populate table data database table "onchange" event dropdown list. dropdown list contains data table contains 1 column value. when user selects of item drop down list columns , values should displayed belong particular value of selected item drop down list. below code display dropdown list. <?php include_once("session.php"); include_once("functions.php"); include_once("connection.php"); $employername=$_session["username"]; $sql = "select job_name job_info username=$employername"; $result = $conn->query($sql); ?> <div> <select name="ddljobname"> <?php while($row=$result->fetch_assoc()){ ?> <option value="<?= $row['job_name'] ?>"><?= $row['job_name'] ?> </option> <?php }?> </select> </div> <select name="ddljobname" id="get...

javascript - Passing variables betweencontrollers in angular js -

i new angular js , services please bear basic question. please read comment inside code understand need. .controller('ctrlr1', function($scope, myservice) { var = "abc"; }) .controller('ctrl2', function ($scope, myservice) { // how value of }) .service('myservice', function() { //what goes here? }); thanks in advance basic sharing angular services .controller('ctrlr1', function($scope, myservice) { var = "abc"; var b = 123; myservice.mydata = a; myservice.mydatab = b; }) .controller('ctrl2', function ($scope, myservice) { // how value of console.log(myservice.mydata); console.log(myservice.mydatab); }) .service('myservice', function() { //what goes here? this.mydata = ''; this.mydatab = 0; });

javascript - Intermittent Axios Get Request Failure -

i have laravel , vue js application, i'm having intermittent issues request vue js & axios, can hit route directly in browser , works fine data returned. load view calls data via axios vue js , works , doesn't.. find if open debugger on right of chrome call fires , works fine. close , fails. error being returned: failed load resource: server responded status of 500 (internal server error) uncaught (in promise) error: request failed status code 500 my laravel route follows: route::get('/orders/today','orderscontroller@today'); my vuejs file has following: axios.defaults.headers.common['x-csrf-token'] = document.queryselector('#_token').getattribute('value'); var vue = new vue({ el: '#app', data: { orders: [], estimates: [] }, mounted : function() { this.getorders(); }, methods: { getorders: function() { axios....

c# - It shows more items in array than expected -

it shows more times expected , when add 1 item , stackable adds stack....but not once 2 times. using microsoft.xna.framework; using microsoft.xna.framework.graphics; using microsoft.xna.framework.input; using system; using system.collections.generic; using system.linq; using system.text; namespace arenarpg { public class inventory { int slotwight; int slotheight; int itemsperpage = 1; int currentpage; int columns, rows; b_item[,] items; backpack backpack; vector2 pos; public inventory(backpack bpack,int itemsperpage,int columns,int rows, int slotwidth, int slotheight, vector2 pos) { this.backpack = bpack; this.slotheight = slotheight; this.slotwight = slotwidth; this.pos = pos; this.columns = columns; this.itemsperpage = itemsperpage; this.rows = rows; items = new b_item[columns, rows]; ...

node.js - npm failing to encode %5C -

i trying connect npm behind proxy uses domain. trying implement solution this question. npm config set proxy "http://domain%5cusername:password@servername:port/" however, when try this, ends turning string into: http://domain/%5cusername:password@servername:port/ note "/" between "domain" , "%5c", doesn't encode. i have tried in both git bash , windows command-line. i've tried , without quotations. same result. why isn't npm, or whoever, encoding %5c properly?

content management system - How can I export the Broken Links report from Sitecore out ? I am on Sitecore version 7.0 -

i can generate reports in sitecore, results come big report. how can export them out xcel email them or filter them ? i recommend install advanced system reporter module available on marketplace - https://marketplace.sitecore.net/en/modules/advanced_system_reporter.aspx . this module comes few reports , 1 of them "broken links" report.

git - How to rollback changes done by one developer keeping all other changes alive? -

all changes pushed repository, got bug , need roll changes done developerx specific commit(commitx -done before 15 days). but need preserve changes done other developers after commitx. option 1 - checkout files of commitx , commit older version of files. --but there new files added , removed developerx in later commits, happen ? need manually remote/add ? is there other better way ? if undesirable changes merged in via pull request (or @ least non-fast-forwarded merge commit), can reference commits hash create new revert commit: assuming you're on primary branch (likely master ): git checkout -b revert-bad-changes git revert <hashofmergecommit> # push branch, merge master, whatever process if changes fast-forwarded or otherwise done right in master branch, you'll need reference numerous commits in revert command, eg: git revert <badcommithash1> <badcommithash2> <badcommithash3>...