Oops, I'm sorry, I did not copy/paste the right database! there is one importent part missing!
Example:
if the user checks for updates, the only information that will be send is the version number! f.ex.: 1.0.3
First the version will be filtered like this 1.0.3 -> 103
Now the only update that will be shown is the version 105.
Once this update is installed, the user may install the version 111.
+----+---------+--------------+
| id | version | version_need |
+----+---------+--------------+
| 1 | 100 | 100 |
| 2 | 101 | 100 |
| 3 | 102 | 100 |
| 4 | 103 | 100 |
| 5 | 104 | 100 |
| 6 | 105 | 100 |
| 7 | 110 | 105 |
| 8 | 111 | 110 |
| 9 | 112 | 111 |
| 10 | 120 | 112 |
+----+---------+--------------+
thx