Originally posted by insane
You need an ORDER BY clause and a LIMIT clause:
[php]
$query="select p.name_poster,p .email,p.contac t_no,m.date_pos t, m.details from post_details p, message_blog m where p.contact_no=m. contact_no ORDER BY p.name_poster DESC LIMIT 0, 10";
[/php]
this will get the results order by the posters name starting with Z and working backwards through the alphabet. It will also only return a maximum 10 records.
I hope that helps
nathj
Comment