I am beginner with PHP. I faced that problem when I start my first SQL queries:
Database query On Pages failed : 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 '['id']}' at line 1
There is my SELECT command :
$page_set = mysql_query(
"SELECT * FROM pages WHERE subject_id = {[$subject'id']}", $connection
);
I checked all my database tables and everything is correct. This query works :
$page_set = mysql_query("SELECT * FROM pages" ,$connection)