ho una tabella mysql:
campi:
`id` int(11) NOT NULL auto_increment,
`offer_id` int(11) NOT NULL,
`campi` text NOT NULL,
PRIMARY KEY (`id`)
devo fare una select per estrarre l'ultima riga che abbia un certo valore di offer_id, come fare?
tipo:
SELECT * FROM miatabella WHERE offer_id = ".$_GET['offer_id']." order by id desc limit 1
mi da il penultimo valore...perchè?
Grazie