C
|
cgphp 1/4/2012 |
You can filter the list page in the "List page: Before SQL query" event: $strWhereClause = whereAdd("day(date_field) ='".date("d")."'",strWhereClause);
|
T
|
technoserv author 1/4/2012 |
You can filter the list page in the "List page: Before SQL query" event: $strWhereClause = whereAdd("day(date_field) ='".date("d")."'",strWhereClause);
|
C
|
cgphp 1/4/2012 |
Do you have records for today's day? |
T
|
technoserv author 1/5/2012 |
Good Morning. |
C
|
cgphp 1/5/2012 |
You have to change the above code as follow: $strWhereClause = whereAdd("day(giorno_app) ='".$_SESSION['day']."'",strWhereClause);
|
T
|
technoserv author 1/5/2012 |
It gives an error: |
C
|
cgphp 1/5/2012 |
$strWhereClause = whereAdd("day(giorno_app) = '".$_SESSION['day']."'",$strWhereClause); |
T
|
technoserv author 1/7/2012 |
Fatal error: Function name must be a string in C:\AppServ\..\..\appuntamenti_events.php on line... |
C
|
cgphp 1/7/2012 |
It's difficult to say what's happening without a look at the full code of the "Before SQL query" event. |
T
|
technoserv author 1/7/2012 |
This is the entire code of appuntamenti_events.php. |
C
|
cgphp 1/7/2012 |
$_SESSION['day'] not $_SESSION('day') |
T
|
technoserv author 1/7/2012 |
Hi Cristian. |
C
|
cgphp 1/7/2012 |
The whereAdd function concatenates the where clauses. echo "session day: ".$_SESSION['day']; |
T
|
technoserv author 1/7/2012 |
The apage is without error but it show |
C
|
cgphp 1/7/2012 |
As I said, $_SESSION['day'] is the variable associated to the click on the + and - buttons. You have to implement the logic for the buttons to filter list by day. |
T
|
technoserv author 1/9/2012 |
Ok. I'm sorry. I had not undestand. |
T
|
technoserv author 1/11/2012 |
thank you very much Cristian. |