Welcome Guest, Not a member yet? Register   Sign In
Hit Counter in Post by ip address
#2

[eluser]LuckyFella73[/eluser]
It's because you SELECT in your view pulls all records from
your news tabel

Quote:SELECT count FROM news

You have to filter the results according to what you want to display.

Just a hint: better do queries in a model a send returned values via controller
to your view file instead of fireing the query in your view file.


Messages In This Thread
Hit Counter in Post by ip address - by El Forum - 08-10-2012, 01:13 AM
Hit Counter in Post by ip address - by El Forum - 08-10-2012, 04:28 AM
Hit Counter in Post by ip address - by El Forum - 08-10-2012, 04:56 AM
Hit Counter in Post by ip address - by El Forum - 08-10-2012, 05:03 AM
Hit Counter in Post by ip address - by El Forum - 08-14-2012, 08:01 PM
Hit Counter in Post by ip address - by El Forum - 08-15-2012, 01:38 AM
Hit Counter in Post by ip address - by El Forum - 08-15-2012, 02:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB