![]() |
romaldus 7/11/2016 |
I am trying to update a count on when a record is loaded. The column that the count is in is called [Scan Count]. This project has only 2 pages List and View. The View Page is where I am trying to do this the logic is (current Scan Count)+1 . Data on the project is added from another program. How can I accomplish this? I am using MS SQL for my database.
$sql = " UPDATE your_table_name SET scan_count = scan_count + 1 WHERE id = ".$values["id"]." ";
|