Pages up for both Memory and Asset Pages, SQL Syntax errors in both

Both set of html and php pages are here, still experiencing the same
SQL syntax error which is causing it not to upload it to the database.