Monday, April 12, 2010

Chú ý lỗi viết lệnh SQL

Thông thường chỉ xử lý các trường hợp NSD nhập: ‘, “, để show lỗi mà chưa ko để ý rằng nhập anc\ cũng có thể gây báo lỗi.







2009-11-24 21:09:57; Err_Code: 256; Err_Str: 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 'verified'' at line 1;;;SELECT * FROM member WHERE Username='g\' AND auth_code='verified'; Err_File: /home/vieclam24h/public_html/ladybirdphp/fw24h/driver/mysql.php; Err_Line: 18

No comments:

Post a Comment