This file contains 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
//open file | |
$("#editFormOpenBut").on('click', function(){ | |
$.get("beet.log", function(response) { | |
console.log("WE DONE DID IT!"); | |
console.log(response); | |
}); | |
}); |
This file contains 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
function createBlogPos() { | |
$.ajax({ type: "POST", | |
url: "/blog/editPage.php", | |
data: {id : "saveBut", formTitle : $("#editFormTitle").val(), formText : $("#editFormText").val() }, | |
success: function(data) {alert(data)}, | |
error: function(data) {} | |
}); | |
} | |
$("#editFormSaveBut").on('click', function(e){ |
This file contains 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
UPDATE listings | |
SET price = CAST( | |
REGEXP_REPLACE( | |
REGEXP_REPLACE( | |
REGEXP_REPLACE(details.value, 'k$|K$', '000', 'g'), | |
'\.[0-9]{2}$', '', 'g'), | |
'[^0-9]', '', 'g') | |
AS money) | |
FROM details | |
WHERE details.detailable_type = 'Listing' |