I am trying to figure out how to write some php code to increment a variable. I am using php version 7.1.2.
I have tried looking for sources online to figure it out, but have not been able to find a good how-to. I am trying to run a simple php application that every time it runs, starting with 0 it adds +1 to my 'count' column in my 'students' database. Any help is much appreciated.
CREATE TABLE `students` ( `ID` int(11) NOT NULL, `Name` varchar(11) NOT NULL, `count` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `students` (`ID`, `Name`, `count`) VALUES (12345, 'James Smith', 0), (56789, 'Mike Sims', 0);