php - How can I display items from a database based on a variable? -


i want display text using php database (an issue) , user click button , integers added users statistics.

here's problem (in short):

i have variable ($count) (e.g: if $count = 1) display text (issue) id database. however, when user clicks 1 of buttons - want count increased one, user can go off site - , when user returns still display recent issue (not $count = 1, $count = 2)

here's have tried:

i feel able selecting database, when used $count = 0; @ start of page - , once user clicked button led $count = 1; - however, when user refreshed page go $count = 0; (obviously) -- instead of $count = 1;


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -