ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

number of records in one page, again...

tvidotto 11 Nov, 2008
i searcher over the forum and found a topichttp://www.chronoengine.com/forums.html?cont=posts&f=12&t=11019 almost with the same problem but in different way

im making a site where there is several sport blogs, and in each will be a module with last results, but those results will be all in the same DB, and the chronoconnectivity is perfect for that, i have the freedom to filter the results

but my problem is that i want in the blog about rugby for exemple, the "last results" module showing the rugby last 10 results

im new with this "query sql thing" and i got stuck in this
WHERE sport = 'rugby' AND cf_id>=(select max(cf_id)-10 from jos_chronoforms_resultados) AND cf_id IS NOT NULL ORDER BY recordtime DESC

that is almost working but i cant go any further, the problem is with this code i filter the last 10 results but the 10 results of all sports, and can show from 0 to 10 of rugby results, dependind on the updates...

is there another way to show only the last 10 results, maybe changing the "select max(cf_id)" or using css or php to limit the number?

thanks and sorry for the bad english 😀
Max_admin 11 Nov, 2008
Hi tvidotto,

I can't understand why do you need the max if you are displaying the last 10 results and you are ordering by datetime, try this :

WHERE sport = 'rugby' ORDER BY recordtime DESC LIMIT BY 0,10

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
tvidotto 11 Nov, 2008
thanks for the reply, i think your way is a lot better than mine, but couldnt get it working

first i get an error whith the BY, i searched about th limit and found that isnt the by

so the code become

WHERE sport = 'rugby' ORDER BY recordtime DESC LIMIT 0,10

but i dont know why, it doesnt show any results, i tried other combinations like:

0,3
1,10
1,3
3
10


and didnt get any result...
Max_admin 11 Nov, 2008
Hi, how many records you get with this only :

WHERE sport = 'rugby'
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
tvidotto 13 Nov, 2008
for the test only five, but i can make more

help if i put the site online?

thanks
Max_admin 13 Nov, 2008
good, now try the LIMIT 0,10 , see if you get the same result?

Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
tvidotto 13 Nov, 2008
without the LIMIT it works fine, but if i put the LIMIT 0,10 i get none result... i tried other numbers and got nothing too
tvidotto 14 Nov, 2008
over internet appeared a error messagem that in my local didnt appeared
Warning: Invalid argument supplied for foreach() in /home/a16574/public_html/joomla3/components/com_chronoconnectivity/chronoconnectivity.html.php on line 172

the WERE codes are

WHERE radio9='Rugby' ORDER BY recordtime DESC 

and
WHERE radio9='Rugby' ORDER BY recordtime DESC LIMIT 0,3
Max_admin 15 Nov, 2008
Hi, I tested this, attached one which should work!

Cheers
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
tvidotto 25 Nov, 2008
huhuhu it worked!!!

i will come back often to see if the plugin or module is ready

thanks
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com