| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
with a hint of lemon
Join Date: Aug 2006
Location: Sheffield
Posts: 495
|
database
Hello everyone Would anyone know of a tutorial of a script that i can add to my page that will display the most recent information only added to a database? Thanks Online portfolio: mgpwr.co.uk
|
|
|
|
|
|
#3 (permalink) | |
|
Senior Member
Join Date: Oct 2006
Posts: 2,152
|
Quote:
Surely it would be more efficient to use the LIMIT command, in the SQL query. Therefore you load only the 5 rows you will be displaying into the array, instead of all of them. |
|
|
|
|
#4 (permalink) |
|
with a hint of lemon
Join Date: Aug 2006
Location: Sheffield
Posts: 495
|
can you point me to a decent tutorial that will guide me through it! Thanks Online portfolio: mgpwr.co.uk
|
|
|
|
#5 (permalink) |
|
Senior Member
Join Date: Jan 2007
Location: Edinburgh
Posts: 197
|
what database. MySQL/PHP ASP/MSSQL etc... dont know any tutorials you could try Spoono. but if you are using mysql/php and you've setup an id column in an auto increment Code:
then you can loop how ever many you want |
|
![]() |