It is said that ajax is used at the front end, and php is used to process the database later! Are you grateful if you have any professional guidance ..! It is said that ajax is used at the front end, and php is used to process the database later ....
Newbie else =! Are you grateful if you have any professional guidance ..!
Reply content:
It is said that ajax is used at the front end, and php is used to process the database later ....
Newbie else =! Are you grateful if you have any professional guidance ..!
The front-end is implemented in javascript, and JQuery can be used to simplify the process:
$. Get ('/getNewReply. php', {uid: uid} function (data) {// update html content according to data });
On the server side, getNewReply. php queries the database:
$ SQL = "select count (id) from replies where uid = {$ _ GET ['uid']}"; $ r = $ db-> execute ($ SQL ); echo json_encode ($ r );
Code similar to this, but you need to modify the code according to your database and others.