Saturday, August 3, 2019

How do get variables from PHP through AJAX



Hi Friends,
Don't Worry, Now I am Explain to get variables from PHP through AJAX.Follow the instruction,
//php value get in jquery in variabel
var php_id = <?php echo $id ?>;
$.ajax({
type:'POST', //post method
url:'ajax-file.php', // redirect URL
data:'start_test_id='+php_id, // POST DATA
success:function(html){
var obj = JSON.parse(html);
if (obj.success == 1){
alert('sucess');
} // success response in json
}
})
ajax-file.php
if(isset($_POST['start_test_id'])){
$php_id = $_POST['start_test_id'];
$insert_sql = $mysqli->query("INSERT INTO xx(yy) VALUES ('$php_id')"); // insert query
if($insert_sql == true){ //json response
$response["success"] = "1";
$test_check = json_encode($response);
}
}
I hope this answer helps for All. If you have an any queries
If you want to Learn more details about,
Thank you to All…
Original Source - www.quora.com

Friday, July 26, 2019

Digital Payment Integration


Testware informatics offers the highest number of payment gateway platforms in world via a single integration including Pay Later, PayTM, Cardless EMI and even recurring subscription payments. testware is the company which integrated world class payment gateway's that offers instant refunds versus the industry standard this ensures merchants are able to delight their customers while running business operations smoothly. For MORE  https://bit.ly/2ZHb3BB 


Digital Payment - Testware Informatics
Digital Payment - Testware Informatics


Other Services like,
  • Web design services

For More Details Call Us +91- 9566955081 / 44-48600064