![]() |
Sergey Kornilov admin 11/12/2013 |
Yes, this is possible, some manual coding will be required. $query->addWhere("Owners like '".$_SESSION["id"].",%' or Owners like '%,"$_SESSION["id"]",%'or Owners like '%,".$_SESSION["id"]."'");
|
D
|
DUKE author 11/26/2013 |
Hi Sergey, Yes, this is possible, some manual coding will be required. You can use 'Dynamic SQL Query' approach to only list records that belong to certain person: http://xlinesoft.com/phprunner/docs/modify_sql_query_on_the_fly.htm For instance, if user id is stored in the session variable $_SESSION["id"] here is the query you can try: $query->addWhere("Owners like '".$_SESSION["id"].",%' or Owners like '%,"$_SESSION["id"]",%'or Owners like '%,".$_SESSION["id"]."'");
|