I have a php file in the root directory and I want to retrieve a variable from a function in another php file. I need it for SQL queries.
My php file is in the root directory
getValue(' SELECT MIN(`price`) FROM `' . _DB_PREFIX_ . 'product_attribute` WHERE `id_product` = ' . (int)$id_product );
I need to get $id_product from another file that is required and is inside a function and uses the parameters of that function.
I know there is an easy way to do this, but I've been searching for hours and can't find it, can you guys help me?
Use
in the root directoryFile 2