Necessary, or at least cleaner, if there are less than 5 records in your database.
> Why don't you just use "select * from table order by id DESC limit 0,5"? > > I don't see any necessary to get the auto_increment value. > > Anyone know how to get the auto_increment $value out of a mysql table. > > I'm thinking it is in mysql_fetch_array but don't see how to get it. > > > $SQL = "SELECT * FROM table ORDER BY id asc LIMIT $autoindex -5 ,5;"; > > > I would like to get the autoindex value of my table and use it in my > SQL. Can I get the autoindex? :) How? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php