Another question by a newbie. I have a php variable that queries the database for a value. It is stored in the variable $publish and its value will change (in the database)
You need to use AJAX for this, like .post() or .get() or JSON.
.post()
.get()