This topic is locked

Table Search

2/24/2007 3:33:08 PM
PHPRunner General questions
B
bkersey author

It would be really nice if the search settings for a table were saved to a cookie and restored when that table was selected. The search settings would be "reset" with a "Show All". Anyone know how to do this?

Thanks in advance.

J
Jane 2/26/2007

Hi,
you can save search values in the $_SESSION variables and the use these variables as default values on the "Edit as" settings dialog on the Visual Editor tab.

To reset $_SESSION variables use the following PHP function:

session_unset();

B
bkersey author 3/6/2007

<br />Hi,<br /><br />you can save search values in the $_SESSION variables and the use these variables as default values on the <b>"Edit as" settings</b> dialog on the <b>Visual Editor</b> tab.<br />To reset $_SESSION variables use the following PHP function:<br />



Great!

How many variables does a session have?

What are the names of these variables?

Which ones are search related?

Where would I go to save these variables?

How about a code example?

Thank you

J
Jane 3/7/2007

Hi,
you can do it to modify generated ..._search.php file manually.

Unfortunately we don't have a ready to go solution for this.
Also I would recommend you to learn some SQL and PHP so you can implement this on your own. Here is a documentation of session variables and functions:

http://php.net/manual/en/ref.session.php