This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User creates new file and saves it | |
'git add path/filename', 'git commit -m "commit message" ?? | |
User opens current version of file, makes edits, saves. | |
User opens current version of file, makes edits, merges edits, saves. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User creates new file and saves it | |
User opens current version of file, makes edits, saves. | |
User opens current version of file, makes edits, merges edits, saves. | |
User compares current version of file to selected version from list. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<?php | |
phpinfo(); | |
?> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysqli_free_result() expects parameter 1 to be mysqli_result | |
$SQL = "UPDATE techdocs.xmldocs SET " . $_GET['Field'] . "='" . $_GET["FieldValue"] . "'" . " WHERE XMLDocID=" . $_GET["XMLDocID"]; | |
$result = mysqli_query($oTechdocs,$SQL ) or die("Couldn't execute query.".mysqli_error($oTechdocs)); | |
// echo $SQL; | |
mysqli_free_result($result); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var users = [], k; | |
for (k in jsUsers) { | |
if (jsUsers.hasOwnProperty(k)) { | |
users.push({ value: k, label: jsUsers[k] }); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(jsUsers); | |
//returns Object 12=Abraham,Zac 166=Anderson,James 81=Aubin,Richard blah blah blah............ | |
How to put it in this format ? | |
I need a format like: | |
var users= [ | |
{value:'12',label:'Smith,Zac'}, | |
{value:'166',label:'Jones,James'}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(jsUsers); | |
//returns Object 12=Abraham,Zac 166=Anderson,James 81=Aubin,Richard | |
var users = {}; | |
users['value']={}; | |
users['label']={}; | |
for (i in jsUsers) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bla is an object with array | |
12 Baker | |
14 Jones | |
........ | |
how to make it the format at the bottom? | |
var userz = YAHOO.lang.JSON.stringify(bla,["value","label"]); | |
alert(userz); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bla has this Object | |
Object 12=Smith,Zac 166=Jones,James | |
How to transform it to: | |
var myUsers= [ | |
{value:'12',label:'Smith,Zac'}, | |
{value:'166',label:'Jones,James'}, | |
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var stateTable = [ | |
{value:'AL',label:'Alabama'}, | |
{value:'CA',label:'California'}, | |
{value:'NY',label:'New York'}, | |
{value:'NC',label:'North Carolina'}, | |
{value:'WV',label:'West Virginia'}, | |
{value:'WI',label:'Wisconsin'} | |
]; |