Next to tackle....the following code, which worked nicely in V3, does not give any resukts in V4
I have put the param om 1, to be sure if more than 1 records would give the message
<?
$db =& JFactory::getDBO();
$pst = "SELECT COUNT(*) AS %s FROM %s
WHERE %s = %s";
$query = sprintf(
$pst,
$db->nameQuote('items'),
$db->nameQuote('j17_chronoforms_data_Test2'),
$db->nameQuote('Wedstrijddatum'),
$db->Quote(JRequest::getString('Wedstrijddatum')));
$db->setQuery($query);
$result = $db->loadObject();
$total = $result->items+1;
if (($total = $result->items+1)>1) {
Return "Here the message : too many etc etc";
}
?>
I have put the param om 1, to be sure if more than 1 records would give the message