Is there a way to populate a page with variables from a database that are unique to that page without giving it a long URL with ? = & characters?
For example:
If blue-widget.php is requested, I want it to pull $product, $description, and $price for blue widget from the database.
If red-widget.php is requested, I want it to pull $product, $description, and $price for red widget from the database.
I stored the page name in the row for the each product in the database. blue-widget.php is stored in the row that contains the information about blue widgets, red-widget.php is stored in the row that contains the information about red widgets.
possible pseudocode? :
$page_name = (somehow detect the current page)
SELECT [variables] FROM [table] WHERE page_name = $page_name