and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
hi,
please give some idea how to get max picture. i am uploading images under event id. each event id has more dates. i want display the max date image under event id. give some idea. i am using following query.
[syntax="php"]<?php
$result = mysql_query("SELECT * FROM maaking_pictures WHERE event_id=$event_id ORDER BY picture_id DESC limit $nexlimit,$users_per_page");
?>
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi,
you are not very specific about the problem. If I get it right you have a table maaking_pictures with event_id field and e.g. date_of_picture field. If you want to select last picture during given event you may use a query like this: