PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
buddok
Forum Commoner
Posts: 50 Joined: Tue May 25, 2004 2:44 pm
Post
by buddok » Sat Aug 07, 2004 10:28 am
isnt there a way you can just select the most recent or the second most recent ? that wud solve all my problems
Joe
Forum Regular
Posts: 939 Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow
Post
by Joe » Sat Aug 07, 2004 10:30 am
Hmm I don't think there is any way of determining most recent/non recent records in the database without any kind of resource such as the timestamp I was talking about! All in all it would take 10mins to setup.
buddok
Forum Commoner
Posts: 50 Joined: Tue May 25, 2004 2:44 pm
Post
by buddok » Sat Aug 07, 2004 10:32 am
but do i put that script in each box ?
buddok
Forum Commoner
Posts: 50 Joined: Tue May 25, 2004 2:44 pm
Post
by buddok » Sat Aug 07, 2004 10:35 am
cus i dont think that wud work :S
Joe
Forum Regular
Posts: 939 Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow
Post
by Joe » Sat Aug 07, 2004 10:37 am
No I shouldn't think so, depending on your original coding structure I suppose.
buddok
Forum Commoner
Posts: 50 Joined: Tue May 25, 2004 2:44 pm
Post
by buddok » Sat Aug 07, 2004 10:39 am
but i think you forgetting i put that code in each of the four boxes does that effect wat u said ?
Joe
Forum Regular
Posts: 939 Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow
Post
by Joe » Sat Aug 07, 2004 10:41 am
Am I right in saying that these boxes are individual sections which hold the news?
buddok
Forum Commoner
Posts: 50 Joined: Tue May 25, 2004 2:44 pm
Post
by buddok » Sat Aug 07, 2004 10:42 am
yer so you get why its all messed an weird to do now lol ?
Joe
Forum Regular
Posts: 939 Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow
Post
by Joe » Sat Aug 07, 2004 10:45 am
Well instead of using individual boxes for each 'news box' use a loop and pack it all into one, or is it possible with your original code?
buddok
Forum Commoner
Posts: 50 Joined: Tue May 25, 2004 2:44 pm
Post
by buddok » Sat Aug 07, 2004 10:48 am
yer i cud do that i was jus tryin to make it original lol then realised it was real hard to achieve i suppose ill jus have to leave it borin i guess
Joe
Forum Regular
Posts: 939 Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow
Post
by Joe » Sat Aug 07, 2004 10:50 am
Well, like I said you should seriously reconsider packing all of these 'news boxes' into one big box!.
I can guarantee it would help you alot.
buddok
Forum Commoner
Posts: 50 Joined: Tue May 25, 2004 2:44 pm
Post
by buddok » Sat Aug 07, 2004 10:56 am
rofl yer but thats why i did it i thought it would be a challenge
Joe
Forum Regular
Posts: 939 Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow
Post
by Joe » Sat Aug 07, 2004 10:57 am
Yeah a challenge, now your pulling your hair out, hehe. Always look for the best solutions first
buddok
Forum Commoner
Posts: 50 Joined: Tue May 25, 2004 2:44 pm
Post
by buddok » Sat Aug 07, 2004 11:02 am
yer lol anyways thansk alot for tryin
Joe
Forum Regular
Posts: 939 Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow
Post
by Joe » Sat Aug 07, 2004 11:03 am
Yeah no problem