1
I am putting the following code to make a query:
SELECT * FROM tabela ORDER BY coluna WHERE ROWNUM = 5
However, when putting this in my PHP, the following message appears:
You have an error in your SQL syntax; check the manual that Corresponds to your Mysql server version for the right syntax to use near 'WHERE ROWNUM = 2' at line 1
Thank you. And I can’t believe I got stuck for 10 minutes because of all this nonsense.
– Victor Eyer
Neither do I. But it happens.
– Diego Souza
I will wait the remaining time to accept the answer. Thank you again
– Victor Eyer
Sometimes it’s just a damn parenthesis of a
IF
not closed on line 200 that keeps you awake because when the error is accused, accuse on line 5340,unexpected '{'
... AFF– Diego Souza