php mysql query a table for the last set number of rows

darklion

New Member
I would like to construct a \[code\]mysql_query\[/code\] that will give me only new \[code\]rows\[/code\] inserted in a \[code\]table\[/code\] with a \[code\]where condition\[/code\] like ....\[code\]SELECT (LAST 5) FROM `x` WHERE `USER_KEY` = '$RK' ORDER BY `dd` DESC \[/code\]this data will be parsed in json afterwards,otherwise i would have just got all the data and looped threw.
 
Back
Top