So I was doing a project that required us to create a program in python and I was wondering if you could use a variable for the OFFSET value so that it can be increased through "if" functions.
Here is the code I came up with.
> c.execute("SELECT * FROM Book_reservation WHERE Status='Pending' LIMIT 20 OFFSET ?",(Num))
But when I tried it, all I got was a "parameters are of unsupported type" error message. Is there any way to make it work?