0
I am studying Javascript and would like a support from you.
I have a file I called getPagamentosMaioresQue.php
, this file has the following syntax:
<!DOCTYPE html>
<html>
<head>
<title> PHP Trabalhando com Arrays</title>
<meta charset="utf-8">
</head>
<body>
<?php require_once("Pagamentos.class.php");
$valorPagamento = $_GET['valor'];
$objPagamentos = new Pagamentos();
$objPagamentos->pesquisaPagamentosMaioresQue($valorPagamento);
?>
</body>
</html>
....and I have another file called grafico.php
where I call the file above using this part of the code...
function desenhaGraficoPagamentos(){
var jsonData = $.ajax({
url: "getPagamentosMaioresQue.php",
dataType: "json",
async: false
}).responseText;
Turns out when I use the getPagamentosMaioresQue.php?valor=10
works normally....
I want to know how to pass these parameters to this file through the grafico.php?valor=10
?
How is your.php graphics file included in the? require/include or <script page....?
– Allan Andrade
I’m calling the.php graphical file is called directly...
– Lincoln Gadéa