Hello I have made a google map visualization and put on a article the below code :
{fabrik view=visualization id=1}
Il y a <?php
$db =JFactory::getDBO();
$query1='SELECT count(id) FROM `fd_annonces` WHERE `date_dep_jusquau`>=date(now()) AND `visibilite` = 1';
$db->setQuery($query1);
$count = $db->loadResult();
echo $count;
?> annonces disponibles sur
You can see the result on the joined image.
The googlemap visualization have the ajax refresh activated. I want to know how i can have the count refresh when the visualization is refresh.
I think I must use ajax but how ?
Thank you for your help
lballard
{fabrik view=visualization id=1}
Il y a <?php
$db =JFactory::getDBO();
$query1='SELECT count(id) FROM `fd_annonces` WHERE `date_dep_jusquau`>=date(now()) AND `visibilite` = 1';
$db->setQuery($query1);
$count = $db->loadResult();
echo $count;
?> annonces disponibles sur
You can see the result on the joined image.
The googlemap visualization have the ajax refresh activated. I want to know how i can have the count refresh when the visualization is refresh.
I think I must use ajax but how ?
Thank you for your help
lballard