|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
simple db question
Hi, is there a way to extract the last 20 records in phpMyadmin 2.3.2. I will use $row = mysql_query('SELECT ????????');
Then display the information on a web page: while($results = mysql_fetch_array($row)) { echo '{$results ['name']}'; } Can somebody out there help me out? Thanks! |
|
#2
|
|||
|
|||
|
RE: simple db question
Take your select statement and order it backwards. I.e., if you had:
select * from table order by name do a: select * from table order by name desc limit 20 |
|
#3
|
|||
|
|||
|
RE: simple db question
It works! Thanks alot!
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > simple db question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|