Sql passing a global variable

Hi,

I’m trying to pass a global variable to a SQL string, I’ve verified the global variable has been filled.

í’ve tried :slight_smile:

where PROGRESS<100 AND RESPONSIBILITY =’" . $_SESSION[usr_group] . “’”

and

Where PROGRESS<100 AND RESPONSIBILITY =’" . [usr_group] . “’”

Or even without any quotes.

It is a string i try to pass.

What would be the correct statement?

Thanks in advance
Regards

Where PROGRESS<100 AND RESPONSIBILITY = ’[usr_group]’

so simple!! Thanks for your assistance.

1 Like