J
|
Jane 11/11/2010 |
Hi, $rstmp = CustomQuery("select count(*) as count_R from TableName");
|
K
|
karmacomposer author 11/11/2010 |
Hi, use List page: Before display event on the Eventstab for this purpose. Here is a sample: $rstmp = CustomQuery("select count(*) as count_R from TableName");
|
J
|
Jane 11/11/2010 |
Here is a sample with WHERE statement: global $strTableName;
|
K
|
karmacomposer author 11/11/2010 |
Here is a sample with WHERE statement: global $strTableName;
|
![]() |
Sergey Kornilov admin 11/11/2010 |
$strTableName is a variable populated with the current table name. You can leave it as is. |
K
|
karmacomposer author 11/11/2010 |
$strTableName is a variable populated with the current table name. You can leave it as is.
|
![]() |
Sergey Kornilov admin 11/11/2010 |
Mike, |
K
|
karmacomposer author 11/11/2010 |
Mike, you need to print this SQL query on the page to see if it looks right. You can also post it here or run against your database in phpMyAdmin to see what data it returns. Print SQl query use echo command i.e. echo "Your SQL query here";
|
![]() |
Sergey Kornilov admin 11/11/2010 |
That's a good question actually. I think you still need to calculate the number of records this person added. You have to cover the following scenarios:
|
K
|
karmacomposer author 11/11/2010 |
That's a good question actually. I think you still need to calculate the number of records this person added. You have to cover the following scenarios:
|
![]() |
Sergey Kornilov admin 11/12/2010 |
You need to stick to the original idea supplied by Jane - checking the number of records that belong to this client and hide add link if record exists already. |