This code works correctly with the fixed dates. How do I use the dates that are registered in the mysql database?
if (!empty($_REQUEST['year']) && !empty($_REQUEST['month'])) {
$dates = array(
array(
'date' => '2016-09-1...
I need the following result:
{
"sala": [{
"horario": "18:30",
"data": "Seg e Terça"
}, {
"horario": "10:30",
"data": "Quarta Terça"
}]
}
UPDATE
I'm doing this in PHP:...
I have a problem deleting it and I get an error message in the console, my script looks like this:
<form action="" id="frmDeleta" class="smart-form">
<button type="submit" class="btn btn-danger"> Excluir </button>
<in...
I've been following the Ionic Framework documentation and viewing tutorials on the internet, but there's no detail communicating with the server. I would like to send form data and receive information via JSON. Could you post a simple example...
Good,
I have the following code, in a function Javascript ,
function(){
var noDataIcon = document.createElement("img");
noDataIcon.src = "~/Images/delete_database.png";
}
It happens to give me an error in src, can n...
I am doing POST using ajax data in JSON format to controller in Spring MVC , however the server is refusing such request Unsupported Media Type stating that the type is not supported. Is there a configura...
I have a problem with entering data in the database with php, I have a form with several checkboxes, so I want to select more than 1 checkbox and insert it into the database, so I did
form
<input type="checkbox" name="f_carteira[]" value...
I have a web service api where a query is made to the database through nhibernate, but when returning the object, its referenced properties are overwritten, I believe it's because of the nhibernate proxy.
HowcanIbedoingtofixthisproblem?Follo...
I made a request from a json file and passed it to a function.
$.post('principal/json',minhaCallBack,'json'); //Requisição
function minhaCallBack(returnhtml){ //função
var json = returnhtml;
console.log('json', json);
return json;
};...
This question is a follow-up to another question, a user answered found the solution to my other question ( Spring Custom Json Receive ), but I'm now having trouble mapping using Jackson.
I want to receive a custom request in JSON and send a...