This topic is locked

$_SESSION["OwnerID"] in charts

5/21/2010 4:29:29 PM
PHPRunner General questions
C
cis2131 author

How do i use $_SESSION["OwnerID"] in charts page Before SQL query.
I have tried this, but that returns no data.

$strWhereClause = "owner_id = '".$_SESSION["OwnerID"]."' ";

This works

$strWhereClause = "owner_id = 1";
Can someone help me.

Sergey Kornilov admin 5/21/2010

An excerpt from http://xlinesoft.com/phprunner/docs/phprunner_session_variables.htm
$_SESSION["OwnerID"] OwnerID value from the login table. Obsolete
$SESSION["<table name>_OwnerID"] OwnerID value from the login table that applies to <table name> table.

C
cis2131 author 5/21/2010



An excerpt from http://xlinesoft.com/phprunner/docs/phprunner_session_variables.htm
$_SESSION["OwnerID"] OwnerID value from the login table. Obsolete
$SESSION["<table name>_OwnerID"] OwnerID value from the login table that applies to <table name> table.


Thanks alot...
Could you please help with an actual example i have tried all the combinations i can think of, but it don't work..
Thanks in advance.

A
ann 5/24/2010

Hi,
your code looks correct. It's difficult to tell you what's happening without seeing actual files. Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.