Jump to content

Scope question


shaung

Recommended Posts

Simple question about scope.

 

I want to run different sql statements depending on a boolean value in a variable.  The value would flip back and forth depending what the user is doing.  What/where is the best way to initialize this variable (initially false).  The page might reload (on a submit or whatever), but I want the variable to remember it's value.

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/284918-scope-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.