function selectTinNumber(object){
$.ajax({
url: '..//include/crud.php',
data: 'pin=' + object.value,
cache: false,
error: function(e){
alert(e);
},
success: function(e){
// A response to say if it's updated or not
alert(e);
}
});
}
i have this code for ajax i want to use it to select query my database in my crud.php i have a function called selectAllPin()
, where i use data pin
. I use pin
as if(isset($_GET['pin'])){
my question is why do i always get alert like this object Object
.. How do i connect my function selectAllPin()
to this ajax any help is appreciated