Welcome Guest, Not a member yet? Register   Sign In
syntax error
#8

[eluser]WanWizard[/eluser]
That is not really a solution.

The query() method is used for hand-coded queries, which, unless you screened your parameters very carefully and properly escaped them all, just increased the chance on a sql injection.

Find the fault, and fix it. You still haven't shown us the code, or the query.

My educated guess is when $page = 0, your row indicator becomes negative (the -5). So it's a logic error you need to fix.


Messages In This Thread
syntax error - by El Forum - 12-05-2010, 11:30 AM
syntax error - by El Forum - 12-05-2010, 11:57 AM
syntax error - by El Forum - 12-05-2010, 12:27 PM
syntax error - by El Forum - 12-05-2010, 12:36 PM
syntax error - by El Forum - 12-05-2010, 12:56 PM
syntax error - by El Forum - 12-05-2010, 12:59 PM
syntax error - by El Forum - 12-05-2010, 01:05 PM
syntax error - by El Forum - 12-05-2010, 01:26 PM
syntax error - by El Forum - 12-05-2010, 03:28 PM
syntax error - by El Forum - 12-06-2010, 08:02 AM
syntax error - by El Forum - 12-06-2010, 10:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB