嗨,我有這個MySQL錯誤:WordPress的MySQL的語法錯誤
WordPress數據庫錯誤:
[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 ')' at line 1]
SELECT file_name FROM art_uploaded_files WHERE file_number in()
這裏的PHP線:
$file_name=$wpdb->get_results("SELECT file_name FROM art_uploaded_files WHERE file_number in(".substr($_files_id,0,-1).")");
我用這爲PHP上傳文件。
可以打印出什麼是' 「SELECT FILE_NAME從art_uploaded_files WHERE file_number在(」 結果SUBSTR($ _ files_id,0, - 。 1)。「)」' –