I have a problem, trying to sort my Select request -
SELECT * FROM `table_name` OREDER BY `score` DESC LIMIT 10 ;
I get error #1064:
#1064
- 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 'BYscore
DESC LIMIT 10' at line 1
But I realy don't know wats wrong ! Names and quotes are right, as I think... as this request works correctly:
INSERT INTO `table_name` (`uid`, `score`) VALUES ("'.$viewer_id.'","'.$uscore.'") ON DUPLICATE KEY UPDATE `score` = "'.$uscore.'";';
Can somebody help me!!??
P.S sorry for my English(