Welcome Guest, Not a member yet? Register   Sign In
a bit of logic help wanted
#1

[eluser]DumpProgrammer[/eluser]
I have a variable in my controller that I call three times on my home page but I would like it to have different articles showing up on my page rather than have the same items three times. Here is the code
Code:
$data['post'] = $this->MPosts->getAllActivePosts();
. So have been retrieving the active post on website with some with pictures and some just the headings. What I would like to have is a start and limit so that there is a continuation of the mysql query on the three articles on the page because its news so I cannot have the same four topics showing. So do I have to perform the same query with different parameters or do I have to use a different variable for my articles?


Messages In This Thread
a bit of logic help wanted - by El Forum - 02-14-2010, 05:20 AM
a bit of logic help wanted - by El Forum - 02-14-2010, 12:10 PM
a bit of logic help wanted - by El Forum - 02-15-2010, 06:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB