Well, my problems is a little wierd,
I have an AJAX Request to get just a number.
That number is printed on: getMoney.php. On index.php i have the AJAX request.
Ajax Code:
function getMoney(selected)
{
if(selected.value != -1)
{
// Obtener presupuesto via AJAX
$(document).ready(function(){
$.ajax({
url: "getMoney.php",
async: true,
success: function(datos){
//My action
}
});
});
}
}
The function is called when I change a value on a Combobox HTML
<select name="area_id" onchange="getMoney(this);">
Well... My problem: If i write down the numbers on getMoney.php (mannualy) its works perfectly, the AJAX's get it and the action is done, but when i get the numbers from my database i just get 0. I open mannualy too the getMoney.php, and the numbers ARE THERE! even if i get it from the Database.
What's wrong?