Answer the question
In order to leave comments, you need to log in
How to work with a database in JS + PHP?
In a program that is written in JS, subject to the conditions, there should be a record in the mysql database, I want to use php to work with the database, how to implement such a design?
if ( a == b ){ // This is JS
<?php
//Here will work with the database on php
?>
}
// Then again JS
Answer the question
In order to leave comments, you need to log in
$.ajax({
url: "index.php",
context: $( ".myClass" ),
success: function(){
alert('ok');
}
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question