In PHPrunner 7.1 the following code from the HELP-File work great:
Example 3
Display the record counter for each menu item. The code will validate if the menu item is an internal table or view and will concatenate the number of records with the menu item name.
Menu Item: Modify event
if ($menuItem->getLinkType() == "Internal" && $menuItem->getPageType() != "WebReports")
{
$settings = new ProjectSettings($menuItem->getTable());
$table = $settings->getOriginalTableName();
$rs=CustomQuery("select count(*) as c from " . AddTableWrappers($table));
$data = db_fetch_array($rs);
$menuItem->setTitle($menuItem->getTitle() . " (". $data["c"] . ")");
}
return true;
In PHPrunner_80 I get this error message:
php ... Fehler ist aufgetreten
Technische Information
Fehlertyp 256
Fehlerbeschreibung Incorrect table name ''
URL localhost/TauppNet80/menu.php?
Fehlerdatei D:\xampp\htdocs\TauppNet80\connections\MySQLConnection.php
Fehlerzeile 120
SQL Abfrage select count(*) as c from ``
Can you help me please?
Thank you
Taumic