stajich Thanks for the help. I've tried printing $limit. It returns '0' when I first call the sub, which is what I want. LIMIT 0,10 returns rows 1-10. The second time I call it it returns 10, which is also what I want. LIMIT 10,10 returns rows 11-20. But for some reason it bugs out.
in reply to Re: Re: Trouble updating value of variable for a placeholder
in thread Trouble updating value of variable for a placeholder
Still getting the error:
You have an error in your SQL syntax near ''10',10' at line 1 at /usr/local/etc/httpd/cgi-bin/return.pl line 590.
Which is where LIMIT is used.