Hi,
I can not understandout how i can populate a select list dynamically.
I want to populate it one way or another depending on the value of a variable:
set @admin = (select `admin` from mydbrtutto.mydbr_userlogin where user = inLogin);
if @admin=1 ther selectList= Italy, France, Spain, Germany
else if @admin=0 selectList= Italy (just my country of belonging)
In others words if i'm login as administrator then I'll run a query (I show all the dealers), otherwise I'll run another query (I'll only show one dealer)
i can not do it before during this:
CREATE PROCEDURE `sp_DBR_TPVReport_MultiVenta`(inCheckbox varchar(20))
because i need to populate select list depending from @admin value
thanks