Hi guys!
I'm new here and also very new to PHP... so please bare with me...
What I need help in is, I'm trying to display 4 of the last images I added from my database with 2 images on the top and 2 images on the bottom.
Could anyone please help me with this??
Thanks in advance!
I need some quick help....
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: I need some quick help....
Assuming your using mysql..mostwanted wrote:What I need help in is, I'm trying to display 4 of the last images I added from my database
Do you have an auto incrementing key? If so, you could use a query like
Code: Select all
SELECT * FROM `images` ORDER BY `id` DESC LIMIT 4Not sure what this means.mostwanted wrote:with 2 images on the top and 2 images on the bottom
-
mostwanted
- Forum Newbie
- Posts: 2
- Joined: Mon Apr 02, 2007 4:53 pm
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA