INSERT INTO `5` VALUES ('photo', 'headline', 'LA Lakers', 'http://facebook.com/NUMBER', 'Here\'s video from the An...', 'NUMBER', 'http://www.facebook.com/NUMBER/posts/NUMBER', 'NUMBER'), 'https://graph.facebook.com/NUMBER/picture?access_token=AAAGGhZBZB1ZCf4BAD1fNpORWVGtWhUI5u**********************&type=normal')
このクエリを実行すると、次のエラーが発生します。
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 ''https://graph.facebook.com/NUMBER/picture?access_token=AAAGGhZBZB1ZC' at line 1
個々の値 (クエリ全体ではない) が PHP 関数 mysql_real_escape_string によってエスケープされた後。
すべてのプロファイル ID を文字列 NUMBER に変更し、プライバシーを保護するためにアクセス トークンにアスタリスクを追加しました。それらは通常そこにはありません。