Skip to content
Advertisement

“bindParam” with multi-parameters after “Limit” couldn’t work in php?

I have encounterd this problem and can’t find a solution, Can some expert help me here?

JavaScript

It seems the problems comme from the parameter after LIMIT, coz if i take off ” LIMIT ? OFFSET ?” the codes can work with the first parameter $postId, comments will be fetched,

But if i add the codes with “LIMIT ? OFFSET?” on the page there will be no comments fetched but no error showed neither,

Any idea?.

Thanks.

Advertisement

Answer

I Got the Solution today:

By using still ” LIMIT ? OFFSET ?” and then:

JavaScript

It works perfectly today!, thanks you guys.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement