![]() |
Sergey Kornilov admin 11/22/2005 |
Hi, now()
$evalues["`Modified`"]="'".now()."'";
foreach($evalues as $ekey=>$value) $strSQL.=$ekey."=".$value.", ";
|
P
|
poopsie author 11/23/2005 |
Hi, you can set the default sorting order for your table and the number of records on the page on Choose fields tab in PHPRunner. Click Changeunder ORDER BYbox to specify the default sorting order and enter 500 into Number of records on first page box. Then rebiuld your pages. You can save the record creation and modification time in a table field of DATE or DATETIME type. To fill it with the curent date and time when the record is added please proceed to Formatting tab in PHPRunner, click Edit format for this field and enter the following default value: After you build the pages you can add some custom code to update this field with the current date when the record is changed. Insert the following line into generated ..._edit.php file just before this snippet: where Modified is your actual DATETIME field name.
|
P
|
poopsie author 11/26/2005 |
I am guessing that the datetime is for each record on the table? I am looking for one that will be at the top of the page that anytime a new record is added, deleted or changed it changes it records it for that page and posts it at the top. Thanks! |
![]() |
Sergey Kornilov admin 11/28/2005 |
Hi, db_exec("update table1set Modified=now()",$conn);
<?php $rslast = db_query("select Modified from table1",$conn); $datalast=db_fetch_numarray($rslast); echo $datalast[0]; ?> |
P
|
poopsie author 11/28/2005 |
Thanks again!!! |