My idea is to make tooltip for new users on website. They will go through the tooltips and each time they complete a tooltip it inserts into DB. 

However i've got a button which is `skip all`. So my idea is to insert all the reminder tooltips which they've not completed into the DB with for loop. 

So it works if there has been no tooltips clicked already. So the tooltip would be equal to `1` because coming through the `$data` is equal to `0`. However if the tooltip is equal to 1 when passed through `$data` it gets a `+1` and the `for loop` doesn't seem to post anything into `database`

```
$NumberOfTooltips = 2;
(int)$data->tooltipLastID = ((int)$data->tooltipLastID === 0) ? 1 : (int)$data->tooltipLastID + 1;     

for ($x = (int)$data->tooltipLastID; $x <= $NumberOfTooltips; $x++) {
   $query = "";
   $query = "INSERT INTO tooltips ";
   $query .= "(tooltip_id, inserted) VALUES ($x, NOW())";   
   database::query($query);
   $this->id = database::getInsertID();
}

```

On the broken loop the value of `(int)$data->tooltipLastID` is 2

Is it because the `(int)$data->tooltipLastID` is already equal to `$NumberOfTooltips`?