0
I have an application that is working with Mysql and PHP databases. There is data in this comic that are updated frequently because it is a vote, but this vote takes place on an external site and on my site only displays the rank with the total votes.
To make this rank more dynamic, I wanted to maintain a constant connection with db so that the rank updates whenever a new vote is counted in the database, without the need for a refresh.
$rank = $_POST["rank"] // Nesse caso usarei o rank de músicas.
$query = mysqli_query($conn, "SELECT * FROM $rank ORDER BY votos LIMIT 0, 10");
A very brief example of how data display occurs.
I use an echo to return to the site the html that is generated in the php page itself and the jquery displays.