Manipulating data on page

Greetings,

I am trying to learn html/php/mysql for a project and I have ran into a dilemma that I can’t find an answer to (which usually means I don’t know the right way to phase the question). I’m trying to build a button that toggles the layout on the page and another that adds +1 to a value displayed on screen, but the code has already been process so nothing actually changes, even if the variable in the data-table have changed. What do I need to do to get something like this to work?

PHP is server side. Since you want something to happen in the browser (client side), you need to use javascript. Try to figure something out (jquery can make this easier), and come back if you have any further questions :slight_smile:

Ah! No wonder I was having trouble then! Thanks! Time to investigate another language.

Just to mention it, it is very common to use javascript client side to send requests to an api or server side to fetch data, which javascript then can display on the page without reloading.

Sponsor our Newsletter | Privacy Policy | Terms of Service