Hello guys,
I'm trying to develop my first TL extension, I've been able to create an extension that lists products retrieved from a database table, so I suppose the hardest part is done
the module simply executes this query SELECT * FROM products ORDER BY name LIMIT 5, now I'd like to be able to set dynamic conditions for this module, so that I can edit the query to accept a variable, example SELECT * FROM products WHERE name like '%".$somename."%' ORDER BY name LIMIT 5
I should be able to set a different $somename variable value for every page: where can I store this value so that I can use it in my query? what if I wanted to use more than a single value?
any suggestion is appreciated, I know it may sound very basic but....
Bookmarks