J
|
Jane 1/30/2007 |
Hi, <A href="orders_view.php?{$row.1editlink}">View</A> and replace it with this one: <A href="orders_view.php?{$row.1editlink}">Add competitions</A>
function ViewOnLoad() { global $where,$conn,$strTableName; //add record to the AnotherTable $strSQLSave = "INSERT INTO AnotherTable (Field1, Field2) SELECT Field1, Field2 FROM ".$strTableName." where ".$where; db_exec($strSQLSave,$conn); //redirect to the List page ?> <script> window.location='./TableName_list.php'; </script> <?php exit(); } |
I
|
ictaylor author 1/30/2007 |
Hi, you can do it using events. For example, create View page, proceed to the Visual Editor tab, turn on HTML mode, find this line: and replace it with this one: Then add ViewOnLoad event. Here is a sample code:
|
J
|
Jane 1/30/2007 |
Hi, |
I
|
ictaylor author 1/30/2007 |
Hi, add event code on the Events tab (step 11) in the PHPRunner. Also you don't need to change $strSQLSave variable. I'm not sure that I understand you correct. Where and when do you want to display message?
|
![]() |
Sergey Kornilov admin 1/30/2007 |
You can use RegisterOnLoad event to get current number of registered users and display it on the page. select count(*) from ... |