mysql_query("select * from your_table order by your_auto_incermented_id desc 
limit 0,5")

hth
toto
----- Original Message ----- 
From: "Brian E Boothe" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, November 06, 2006 4:20 PM
Subject: [php_mysql] Displaying table name records from bottom up


HI all ;



    I,m needing to display the last Five records in a table by Company name
starting at the End of the Table up;

       How do I do that in MySQL and php

         Right now I'm just using



                           $maxRows_Recordset1 = 5;



        Then on my Form im listing the table by company name :



.

                                          <?php echo
$row_Recordset1['companyname']; ?>



  But  I wanna do it from the last record Entered up 5



                     Can someone help me ,       thanks





--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.28/518 - Release Date: 11/4/2006



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.28/518 - Release Date: 11/4/2006



[Non-text portions of this message have been removed]



The php_mysql group is dedicated to learn more about the PHP/MySQL web 
database possibilities through group learning.
Yahoo! Groups Links








The php_mysql group is dedicated to learn more about the PHP/MySQL web database 
possibilities through group learning.  
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php_mysql/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/php_mysql/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to