31.10.2015, 20:17
That`s called recursion https://en.wikipedia.org/wiki/Recursion
On line 5, mysql is instructed to call CheckQuery1 query, which in return calls the query again and again calls that callback and so on.
You have two choices:
On line 5, mysql is instructed to call CheckQuery1 query, which in return calls the query again and again calls that callback and so on.
You have two choices:
- Create a stopping condition, as demonstrated by Jeff.
- Move the callback to a different function, which does not call this query.