
Originally Posted by
torvista
The problem is not the database connection (that is working ok), but that PhpStorm cannot read/substitute the database constants in those queries for the constant definitions in
includes/database_tables.php with the DB_PREFIX.
So, this does not work:
define('TABLE_PRODUCTS', DB_PREFIX . 'products');
but this does work (clears the error)
define('TABLE_PRODUCTS', 'products');
web searches indicate this is not possible, I was just wondering if anyone had found a way to make it work without changing includes/database_tables.php.
Bookmarks