I have a form and the following requisition:
jQuery('#cadastro').submit(function() {
var dados = jQuery(this).serialize();
jQuery.ajax({
type: "POST",
url: "/cadastrar",
data: dados,...
I have the following web service
$app->get('/alunos', function(){
require_once('db/config.php');
foreach ($db->alunos()
->order("nome")
as $row){
$data[]=$row;
}
echo json_encode($data, JSON_UNESCAPED_UNICO...
Hello everyone! All right?
This is my first post here. I have a silly problem, but there are three, four days!
I started to develop recently and this is my first commercial project. It's pretty much done, but my email form is not working when th...
I am doing an api to do the integration of two different systems, the system sends me the following json:
cJson = [{"TESTE": "1"}]
I was 3 days with a problem because I was not able to get the json that the other system sent me via post wit...
I have a server with a presentation portfolio done in html, css and javascript. All files in this portfolio are in the public_html folder and can be accessed by the server address 'server.com/'. However I developed a system in PHP and put it in...
I'm building a API where I register animals and colors and get animals in return, I'm using Doctrine to treat entities and I've created a many-to-many relationship between animals and colors.
/**
* @Entity @Table(name="Animais")...
Well, my directory in the slim framework was standard ..
/public
/vendor
/src
/cache
/app
between the other folders .. and within / public The index.php was calling the other files and folder normally ..
require __DIR__ . '/../ven...
I am comparing the data of these two tables pontos and pontos_view
in practice, in the pontos table there is a list of tasks that when executed by the user, saved in pontos_view thus causing the user to not execute th...